file: PhysicsComponent.aus

class: PhysicsComponent

[16:7] extends: Component

Wraps FXGL's PhysicsComponent, the jbox2d-backed component that gives an Entity dynamics (mass, friction, restitution, gravity, linear and angular velocity, impulses, forces). Attach with entity.addComponent before adding the entity to a GameWorld; the physics body is created on the first physics tick after the entity is added.

Methods