Class MeshCollider
A collider represented by an arbitrary mesh.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Physics/Colliders/MeshCollider.h
Syntax
public class MeshCollider : public Collider
Fields
CollisionData
Linked collision data asset that contains convex mesh or triangle mesh used to represent a mesh collider shape.
Declaration
public AssetReference<CollisionData> CollisionData
Field Value
|
AssetReference<CollisionData>
|
ImplementPhysicsDebug
Declaration
protected ImplementPhysicsDebug
Methods
CanAttach(RigidBody* rigidBody)
Determines whether this collider can be attached the specified rigid body.
Declaration
public virtual bool CanAttach(RigidBody* rigidBody) const override
Parameters
|
RigidBody
rigidBody
The rigid body. |
Returns
|
bool
|
Overrides
CanBeTrigger()
Determines whether this collider can be a trigger shape.
Declaration
public virtual bool CanBeTrigger() const override
Returns
|
bool
|
Overrides
GetGeometry(CollisionShape& collision)
Gets the collider shape geometry.
Declaration
protected virtual void GetGeometry(CollisionShape& collision) override
Parameters
|
CollisionShape
collision
The output collision shape. |
Overrides
IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
Determines if there is an intersection between the current object and a ray.
Declaration
public virtual bool IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) override
Parameters
|
Ray
ray
The ray to test. |
|
Real
distance
When the method completes, contains the distance of the intersection (if any valid). |
|
Vector3
normal
When the method completes, contains the intersection surface normal vector (if any valid). |
Returns
|
bool
True whether the two objects intersected, otherwise false. |
Overrides
OnAssetChanged(Asset* asset, void* caller)
Declaration
protected virtual void OnAssetChanged(Asset* asset, void* caller) override
Parameters
|
Asset
asset
|
|
void
caller
|
Overrides
OnAssetLoaded(Asset* asset, void* caller)
Declaration
protected virtual void OnAssetLoaded(Asset* asset, void* caller) override
Parameters
|
Asset
asset
|
|
void
caller
|
Overrides
OnDebugDrawSelected()
Draws debug shapes for the selected actor and all child scripts.
Declaration
public virtual void OnDebugDrawSelected() override
Overrides
OnDebugDrawSelf()
Declaration
public virtual void OnDebugDrawSelf() override
Overrides
UpdateBounds()
Updates the bounding box of the shape.
Declaration
protected virtual void UpdateBounds() override