Collider
class Collider
Represents the collision of an object in the scene, their types are, "Box", "Sphere", "Convex", "Model", and "SDModel".
public class Collider
extends Component
— Constructors (2) —
Constructor | Description |
---|---|
Collider() | Creates a new Collider. |
Collider(int shape) | Creates a new collider with its type defined to be "shape" argument(0 for "Box", 1 for "Sphere", 2 for "Convex", 3 for "Convex", and 4 for "SDModel"). |
— Methods (13) —
Name | Description |
---|---|
int getShape() | Returns the collider type. |
void setShape(int value) | Sets the collider type(0 for "Box", 1 for "Sphere", 2 for "Convex", 3 for "Convex", and 4 for "SDModel") to be "value" argument. |
void setVertexFile(VertexFile pFile) | Sets the collider's VertexFile to be "pFile" argument. |
Vector3 getPosition() | Returns the Vector3 that offsets the position of the collider. |
void setPosition(Vector3 vector3) | Set the Vector3 that offsets the position of the collider to be "vector3" argument. |
Quaternion getRotation() | Returns the Quaternion that offsets the rotation of the collider. |
void setRotation(Quaternion value) | Set the Quaternion that offsets the rotation of the collider to be "value" argument. |
Vector3 getScale() | Returns the Vector3 that offsets the scale of the collider. |
void setScale(Vector3 vector3) | Set the Vector3 that offsets the scale of the collider to be "vector3" argument. |
Vertex getVertex() | Return the collider Vertex. |
void setVertex(Vertex vertex) | Sets the vertex of the collider to be "vertex" argument. |
void setConvexVertex(Vertex vertex) | Sets the collider's ConvexVertex to be "vertex" argument. |
boolean isLoaded() | Returns true if the collider is loaded, false if not. |