Click or drag to resize
StaticBody Class
A static collision object that does not respond to events and can't be moved. This is useful for really static things that can only block and collide, but don't really do anything else (trees, rocks, etc..).
Inheritance Hierarchy

Namespace:  GeonBit.Core.Physics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class StaticBody : BasicPhysicalBody

The StaticBody type exposes the following members.

Constructors
  NameDescription
Public methodStaticBody
Create the static collision object from shape.
Top
Properties
  NameDescription
Public propertyCollisionGroup
The collision group this body belongs to. Note: compare bits mask.
(Inherited from BasicPhysicalBody.)
Public propertyCollisionMask
With which collision groups this body will collide? Note: compare bits mask.
(Inherited from BasicPhysicalBody.)
Public propertyEnableSimulation
If false, will not simulate forces on this body and will make it behave like a kinematic body.
(Overrides BasicPhysicalBodyEnableSimulation.)
Public propertyFriction
Get / set body friction.
(Inherited from BasicPhysicalBody.)
Public propertyInvokeCollisionEvents
If true (default) will invoke collision events. You can turn this off for optimizations.
(Inherited from BasicPhysicalBody.)
Public propertyIsActive
Return if the physical body is currently active.
(Inherited from BasicPhysicalBody.)
Public propertyIsEthereal
If true, this object will not have a physical body (eg other objects will pass through it), but will still trigger contact events.
(Inherited from BasicPhysicalBody.)
Public propertyIsKinematic
Return if this is a kinematic object.
(Overrides BasicPhysicalBodyIsKinematic.)
Public propertyIsStatic
Return if this is a static object.
(Overrides BasicPhysicalBodyIsStatic.)
Public propertyPosition
Get / set body position.
(Inherited from BasicPhysicalBody.)
Public propertyRestitution
Get / set body restitution.
(Inherited from BasicPhysicalBody.)
Public propertyScale
Get / Set body scale.
(Inherited from BasicPhysicalBody.)
Public propertyShape
Get the collision shape.
(Inherited from BasicPhysicalBody.)
Public propertyWorldTransform
Get / set object world transformations. Get the rigid body in bullet format.
(Overrides BasicPhysicalBodyWorldTransform.)
Top
Methods
  NameDescription
Public methodCallCollisionEnd
Called when this physical body stop colliding with another body.
(Inherited from BasicPhysicalBody.)
Public methodCallCollisionProcess
Called while this physical body is colliding with another body.
(Inherited from BasicPhysicalBody.)
Public methodCallCollisionStart
Called when this physical body start colliding with another body.
(Inherited from BasicPhysicalBody.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also