![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IResourceMeshCollider graph node interface.
This interface represents a Graph::ICollider with an arbitrary collision shape, which is obtained from a given Resource::IMesh object.
Initialization will fail if the referenced Resource::IMesh object does not contain appropriate collision information; it is necessary to include such information already at the time of converting the mesh object. Similar to the Graph::IResourceMeshCuller interface, this interface does not explicitly require a specific type of structural information to be present in the mesh; a specialized Graph::ResourceMeshCollider on the other hand demands the presence of a bounding volume tree.
See also Graph::IResourceMeshCuller.
Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Murl.Graph.INode GetNodeInterface()
Get the constant Graph::ITransform interface. This method returns a constant pointer to the node's Graph::ITransform interface, to be able to query the node's transformation matrix and depth order.
Murl.Graph.ITransform GetTransformInterface()
Get the constant Graph::ICollider interface. This method returns a constant pointer to the node's Graph::ICollider interface, to be able to query common collider-related properties.
Murl.Graph.ICollider GetColliderInterface()
Get a constant Graph::IMeshResourceTarget container. This method returns a constant pointer to a Graph::IMeshResourceTarget container, which allows to query the mesh resources referenced by a node implementing this interface.
Murl.Graph.IGenericResourceTarget.ResourceIMesh GetMeshResourceTarget()