-
applyAcceleration
(acceleration)
-
applys acceleration to the rigidbody over the tick
Name |
Type |
Description |
acceleration |
Utils.Vector2d
|
the acceleration vector |
-
-
applys velocity to the rigidbody
Name |
Type |
Description |
velocity |
Utils.Vector2d
|
the velocity to add over the tick |
-
calcCollision
(other, normal)
-
resolve collision between this and other rigidbody
-
fixPenetration
(other, penVec)
-
fixes bodies penetration/energy loss
-
-
sets parent (attches component to entity p)
Name |
Type |
Description |
p |
Core.Entity
|
entity to attach to (should be parent; parent can be object) |
-
-
sets rigidbody as static (infinite mass, does not move)
-
-
actual update function (tick)
-
-
auto-only updates rigidbody (tick)