PhysicsEntity
class PhysicsEntity
A class used for physics, all physics related classes inherit from this class.
public class PhysicsEntity
— Constructors (1) —
| Constructor | Description |
|---|---|
| PhysicsEntity() | Creates a new PhysicsEntity. |
— Methods (7) —
| Name | Description |
|---|---|
| SpatialObject getObject() | Returns the current SpatialObject component(components that inherit this class). |
| String getTittle() | Returns the current name of the component(components that inherit this class). |
| boolean colliderWithName(String objectName) | Checks if the current object is colliding with the object whose name is defined to be "name" argument. |
| boolean isColliding() | Returns if the actual object is colliding with any object. |
| List\<Collision> getCollisionList() | Returns a List\<Collision> with all collisions informations that are ocurring with the actual object. |
| Collision getCollisionAt(int idx) | Returns a Collision class with all informations about the collision information with index == idx in getCollisionList method return value. |
| int getCollisionsCount() | Returns the number of collisions. |