Class PhysicBodyDef3D
Definition of a Physic Body 3D.
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class PhysicBodyDef3D
  Fields
BodyComponent
The physic body.
Declaration
public PhysicBody3D BodyComponent
  Field Value
| Type | Description | 
|---|---|
| PhysicBody3D | 
CcdMotionThreshold
Gets or sets the CCD motion threshold.
Declaration
public float CcdMotionThreshold
  Field Value
| Type | Description | 
|---|---|
| float | 
Remarks
CCD motion clamping activates for convex objects that exceed a (squared to avoid taking square roots) velocity threshold. By default this threshold is zero, which means this feature is disabled for rigid bodies.
CcdSweptSphereRadius
Gets or sets the CCD swept shere radius.
Declaration
public float CcdSweptSphereRadius
  Field Value
| Type | Description | 
|---|---|
| float | 
Remarks
CCD works on an embedded sphere of radius, make sure this radius is embedded inside the convex objects, preferably smaller.
CenterOfMassOffset
RigidBody center of mass offset.
Declaration
public Matrix4x4 CenterOfMassOffset
  Field Value
| Type | Description | 
|---|---|
| Matrix4x4 | 
CollisionCategories
Gets or sets the collision category bits.
Declaration
public CollisionCategory3D CollisionCategories
  Field Value
| Type | Description | 
|---|---|
| CollisionCategory3D | 
Friction
Gets or sets the friction of the body.
Declaration
public float Friction
  Field Value
| Type | Description | 
|---|---|
| float | 
IsSensor
This body is not affected by collisions.
Declaration
public bool IsSensor
  Field Value
| Type | Description | 
|---|---|
| bool | 
MaskBits
Gets or sets the collision mask bits.
Declaration
public CollisionCategory3D MaskBits
  Field Value
| Type | Description | 
|---|---|
| CollisionCategory3D | 
Orientation
The orientation.
Declaration
public Quaternion Orientation
  Field Value
| Type | Description | 
|---|---|
| Quaternion | 
Position
The translation.
Declaration
public Vector3 Position
  Field Value
| Type | Description | 
|---|---|
| Vector3 | 
Restitution
Gets or sets the restitution of the body.
Declaration
public float Restitution
  Field Value
| Type | Description | 
|---|---|
| float | 
RollingFriction
Gets or sets the rolling friction of the body.
Declaration
public float RollingFriction
  Field Value
| Type | Description | 
|---|---|
| float |