| BasePhysicsComponent Class |
Namespace: GeonBit.ECS.Components.Physics
public abstract class BasePhysicsComponent : BaseComponent
The BasePhysicsComponent type exposes the following members.
| Name | Description | |
|---|---|---|
| _GameObject |
Get the game object this component is attached to.
(Inherited from BaseComponent.) | |
| 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.
| |
| Enabled |
Is this component currently enabled.
(Inherited from BaseComponent.) | |
| EnableSimulation |
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.
| |
| Friction |
Get / set body friction.
| |
| InvokeCollisionEvents |
If true (default) will invoke collision events.
You can turn this off for optimizations.
| |
| IsEthereal |
If ethereal, other bodies will be able to pass through this object, but it will still trigger contact events.
| |
| IsKinematic |
Return if this is a kinematic object.
| |
| IsStatic |
Return if this is a static object.
| |
| Name |
Get / set the name of this component.
(Inherited from IComponent.) | |
| Position |
Get / set current body position.
| |
| Restitution |
Get / set body restitution.
| |
| Scale |
Set / get body scale.
| |
| WorldTransform |
Get / set physical body world transformation.
|
| 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.
| |
| Clone |
Clone this component.
(Inherited from BaseComponent.) | |
| CollisionEnd |
Called when this physical body stop colliding with another body.
(Inherited from BaseComponent.) | |
| CollisionProcess |
Called while this physical body is colliding with another body.
(Inherited from BaseComponent.) | |
| CollisionStart |
Called when this physical body start colliding with another body.
(Inherited from BaseComponent.) | |
| Destroy |
Destroy this component.
(Inherited from BaseComponent.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| FixedUpdate |
Just like Update(), but called every constant amount of time regardless of FPS and Vsync.
(Inherited from BaseComponent.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetImplementedFrameBasedEvents |
Get a list of frame-based events this component implements.
(Inherited from BaseComponent.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| HasMethodImplemented |
Return if this component has a method implemented.
(Inherited from BaseComponent.) | |
| Heartbeat |
An event that triggers every X miliseconds (defined per GameObject instance).
(Inherited from BaseComponent.) | |
| RemoveFromParent |
Remove this component from parent.
(Inherited from BaseComponent.) | |
| SendMessage |
Send message to this component.
(Inherited from BaseComponent.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Update |
Update this component (called every frame parent is active).
(Inherited from BaseComponent.) |
| Name | Description | |
|---|---|---|
| AsDebug |
If true, it means this component was added to its parent in debug mode.
(Inherited from BaseComponent.) |