PhysicsComponent
Complete API reference for PhysicsComponent, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Physics
Component: yes
public class PhysicsComponent extends Component
Constructors
| Signature | Description |
|---|---|
PhysicsComponent(Component) | Executes PhysicsComponent and returns after the underlying engine call finishes. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
velocity | Vector3 | get | Returns the current velocity of the object. |
Methods
| Signature | Returns | Description |
|---|---|---|
colliderWithName(String) | boolean | Checks if this object is colliding with an object with the specified name. |
isColliding() | boolean | Checks if this object is colliding with anything. |
getCollisionList() | List<Collision> | Returns a list of all current collisions. |
getCollisionsCount() | int | Returns the number of current collisions. |
getCollisionAt(int) | Collision | Returns the Collision at the specified index. |