Class MeshCollider3D
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
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class MeshCollider3D : Collider3D<IMeshColliderShape3D>, IDependencyObject
Constructors
MeshCollider3D()
Initializes a new instance of the MeshCollider3D class.
Declaration
public MeshCollider3D()
Fields
AsyncShapeCreation
The Shape creation is asynchronous.
Declaration
public bool AsyncShapeCreation
Field Value
Type | Description |
---|---|
bool |
Properties
IsConvex
Gets or sets a value indicating whether you.
Declaration
public bool IsConvex { get; set; }
Property Value
Type | Description |
---|---|
bool |
OrientationOffset
Gets or sets the orientation.
Declaration
public Quaternion OrientationOffset { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
RotationOffset
Gets or sets the orientation.
Declaration
[RenderProperty(typeof(Vector3RadianToDegreeConverter))]
public Vector3 RotationOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Size
Gets or sets the size of the box collider.
Declaration
public Vector3 Size { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
AddShapeToRigidBody()
Adds the shape to the rigid body.
Declaration
protected override void AddShapeToRigidBody()
Overrides
BaseCreateColliderShape()
Base method to create a collider shape.
Declaration
protected override void BaseCreateColliderShape()
Overrides
CreateColliderShape3D_T()
Creates the physic object.
Declaration
protected override IMeshColliderShape3D CreateColliderShape3D_T()
Returns
Type | Description |
---|---|
IMeshColliderShape3D | A new physics object. |
Overrides
OnModelRefreshed()
The model is refreshed, so we need to recreate the models.
Declaration
protected override void OnModelRefreshed()
Overrides
OnScaleChanged(object, EventArgs)
The scale has been changed.
Declaration
protected override void OnScaleChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
object | sender | The transform. |
EventArgs | e | The args. |
Overrides
RefreshHierarchyTransform()
Refresh the hierarchy transform.
Declaration
protected override void RefreshHierarchyTransform()
Overrides
RefreshShapeDimensions()
Refresh the shape dimensions.
Declaration
protected override void RefreshShapeDimensions()