RigidBody class
Represents a rigid body with 2D force accumulation (convenience wrapper).
For most use cases, prefer PhysicsBody directly. This class exists for code that needs a simpler interface without collision shape requirements.
Constructors
Properties
Methods
-
applyForce(
double x, double y) → void - Apply a 2D force.
-
integrate(
double dt) → void - Integrate forces → velocity → position for one timestep.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited