Class CapsuleCollider3D
RigidBody3D enable your entities to act under the control of physics. The Rigidbody can receive forces and torque to make your objects move in a realistic way. Any entity must contain a Rigidbody to be influenced by gravity, act under added forces or interact with other objects through physics engine.
Inheritance
CapsuleCollider3D
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class CapsuleCollider3D : Collider3D<ICapsuleColliderShape3D>, IDependencyObject
Constructors
CapsuleCollider3D()
Initializes a new instance of the CapsuleCollider3D class.
Declaration
public CapsuleCollider3D()
Properties
Height
Gets or sets the height of the capsule.
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
float |
OrientationOffset
Gets or sets the orientation.
Declaration
public Quaternion OrientationOffset { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
Radius
Gets or sets the radius of the capsule.
Declaration
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationOffset
Gets or sets the orientation.
Declaration
[RenderProperty(typeof(Vector3RadianToDegreeConverter))]
public Vector3 RotationOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
CreateColliderShape3D_T()
Creates the physic object.
Declaration
protected override ICapsuleColliderShape3D CreateColliderShape3D_T()
Returns
Type | Description |
---|---|
ICapsuleColliderShape3D | A new physics object. |
Overrides
RefreshHierarchyTransform()
Refresh the hierarchy transform.
Declaration
protected override void RefreshHierarchyTransform()
Overrides
RefreshShapeDimensions()
Refresh the shape dimensions.
Declaration
protected override void RefreshShapeDimensions()