Click or drag to resize
BasicPhysicalBody Class
A Physical body is the basic object of the physics world. They are affected by forces and collide with each other. Physical Entity = Rigid Body + Collision Shape.
Inheritance Hierarchy

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

The BasicPhysicalBody type exposes the following members.

Constructors
  NameDescription
Public methodBasicPhysicalBody
Initializes a new instance of the BasicPhysicalBody class
Top
Properties
  NameDescription
Public propertyCollisionGroup
The collision group this body belongs to. Note: compare bits mask.
Public propertyCollisionMask
With which collision groups this body will collide? Note: compare bits mask.
Public propertyEnableSimulation
If false, will not simulate forces on this body and will make it behave like a kinematic body.
Public propertyFriction
Get / set body friction.
Public propertyInvokeCollisionEvents
If true (default) will invoke collision events. You can turn this off for optimizations.
Public propertyIsActive
Return if the physical body is currently active.
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.
Public propertyIsKinematic
Return if this is a kinematic object.
Public propertyIsStatic
Return if this is a static object.
Public propertyPosition
Get / set body position.
Public propertyRestitution
Get / set body restitution.
Public propertyScale
Get / Set body scale.
Public propertyShape
Get the collision shape.
Public propertyWorldTransform
Get world transform from physical body.
Top
Methods
  NameDescription
Public methodCallCollisionEnd
Called when this physical body stop colliding with another body.
Public methodCallCollisionProcess
Called while this physical body is colliding with another body.
Public methodCallCollisionStart
Called when this physical body start colliding with another body.
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