| BasicPhysicalBody Class |
Namespace: GeonBit.Core.Physics
public class BasicPhysicalBody
The BasicPhysicalBody type exposes the following members.
| Name | Description | |
|---|---|---|
| BasicPhysicalBody | Initializes a new instance of the BasicPhysicalBody class |
| Name | Description | |
|---|---|---|
| CollisionGroup |
The collision group this body belongs to.
Note: compare bits mask.
| |
| CollisionMask |
With which collision groups this body will collide?
Note: compare bits mask.
| |
| EnableSimulation |
If false, will not simulate forces on this body and will make it behave like a kinematic body.
| |
| Friction |
Get / set body friction.
| |
| InvokeCollisionEvents |
If true (default) will invoke collision events.
You can turn this off for optimizations.
| |
| IsActive |
Return if the physical body is currently active.
| |
| IsEthereal |
If true, this object will not have a physical body (eg other objects will pass through it), but will still trigger contact events.
| |
| IsKinematic |
Return if this is a kinematic object.
| |
| IsStatic |
Return if this is a static object.
| |
| Position |
Get / set body position.
| |
| Restitution |
Get / set body restitution.
| |
| Scale |
Get / Set body scale.
| |
| Shape |
Get the collision shape.
| |
| WorldTransform |
Get world transform from physical body.
|
| Name | Description | |
|---|---|---|
| CallCollisionEnd |
Called when this physical body stop colliding with another body.
| |
| CallCollisionProcess |
Called while this physical body is colliding with another body.
| |
| CallCollisionStart |
Called when this physical body start colliding with another body.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |