Class PhysicBody3D<T, K>
PhysicBody3D enables your entities to act under the control of physics.
Inheritance
PhysicBody3D<T, K>
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public abstract class PhysicBody3D<T, K> : PhysicBody3D, IDependencyObject where T : IPhysicBody3D where K : PhysicBodyDef3D<T>, new()
Type Parameters
Name | Description |
---|---|
T | The physics body interface. |
K | The body definition class. |
Constructors
PhysicBody3D()
Initializes a new instance of the PhysicBody3D<T, K> class.
Declaration
public PhysicBody3D()
Fields
bodyDefinition
Rigid body definition.
Declaration
protected K bodyDefinition
Field Value
Type | Description |
---|---|
K |
physicBody
The rigid body.
Declaration
protected T physicBody
Field Value
Type | Description |
---|---|
T |
Properties
BodyDef
Gets the rigidbody.
Declaration
protected override PhysicBodyDef3D BodyDef { get; }
Property Value
Type | Description |
---|---|
PhysicBodyDef3D |
Overrides
InternalBody
Gets the rigid body.
Declaration
public override IPhysicBody3D InternalBody { get; }
Property Value
Type | Description |
---|---|
IPhysicBody3D |
Overrides
Methods
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()