Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.ISphereCollider

The ISphereCollider graph node interface.

This interface represents a Graph::ICollider in the shape of a sphere, with a default radius of 1.0 and a default center at the origin (0/0/0).


Table members

Methods


GetNodeInterface()

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()

Returns
Murl.Graph.INode The constant Graph::INode interface, or null if not available

GetTransformInterface()

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()

Returns
Murl.Graph.ITransform The constant Graph::ITransform interface, or null if not available

GetColliderInterface()

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()

Returns
Murl.Graph.ICollider The constant Graph::ICollider interface

SetRadius(radius)

Set the sphere's radius.

Boolean SetRadius(Number radius)

Parameters
radiusThe radius.
Returns
Boolean true if successful.

GetRadius()

Get the sphere's radius.

Number GetRadius()

Returns
Number The radius.