Skip to main content

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

SignatureDescription
PhysicsComponent(Component)Executes PhysicsComponent and returns after the underlying engine call finishes.

Virtual Attributes

NameTypeAccessDescription
velocityVector3getReturns the current velocity of the object.

Methods

SignatureReturnsDescription
colliderWithName(String)booleanChecks if this object is colliding with an object with the specified name.
isColliding()booleanChecks if this object is colliding with anything.
getCollisionList()List<Collision>Returns a list of all current collisions.
getCollisionsCount()intReturns the number of current collisions.
getCollisionAt(int)CollisionReturns the Collision at the specified index.