Click or drag to resize
StaticBody Properties

The StaticBody type exposes the following members.

Properties
  NameDescription
Public property_GameObject
Get the game object this component is attached to.
(Inherited from BaseComponent.)
Public propertyCollisionGroup
The collision group this body belongs to. Note: compare bits mask.
(Inherited from BasePhysicsComponent.)
Public propertyCollisionMask
With which collision groups this body will collide? Note: compare bits mask.
(Inherited from BasePhysicsComponent.)
Public propertyEnabled
Is this component currently enabled.
(Inherited from BaseComponent.)
Public propertyEnableSimulation
Get / set simulation state. If true, will simulate forces etc on this body (default). If false, will not simulate forces and basically behave like a kinematic body.
(Inherited from BasePhysicsComponent.)
Public propertyFriction
Get / set body friction.
(Inherited from BasePhysicsComponent.)
Public propertyInvokeCollisionEvents
If true (default) will invoke collision events. You can turn this off for optimizations.
(Inherited from BasePhysicsComponent.)
Public propertyIsEthereal
If ethereal, other bodies will be able to pass through this object, but it will still trigger contact events.
(Inherited from BasePhysicsComponent.)
Public propertyIsKinematic
Return if this is a kinematic object.
(Inherited from BasePhysicsComponent.)
Public propertyIsStatic
Return if this is a static object.
(Inherited from BasePhysicsComponent.)
Public propertyName
Get / set the name of this component.
(Inherited from IComponent.)
Public propertyPosition
Get / set current body position.
(Inherited from BasePhysicsComponent.)
Public propertyRestitution
Get / set body restitution.
(Inherited from BasePhysicsComponent.)
Public propertyScale
Set / get body scale.
(Inherited from BasePhysicsComponent.)
Public propertyWorldTransform
Get / set physical body world transformation.
(Inherited from BasePhysicsComponent.)
Top
See Also