M3PhysicsSystem class

Physics-entity binding layer.

Constructors

M3PhysicsSystem(M3PhysicsEngine _engine)
constructor

Properties

engine → M3PhysicsEngine
no setter
hashCode → int
The hash code for this object.
no setterinherited
info → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBox(double hx, double hy, double hz, {M3RigidBodyDesc? desc}) → M3RigidBody
add box rigid body
addCapsule({required double radius, required double halfHeight, M3RigidBodyDesc? desc, M3Axis axis = M3Axis.z}) → M3RigidBody
Adds a capsule-shaped rigid body.
addCylinder({required double radius, required double halfHeight, M3RigidBodyDesc? desc}) → M3RigidBody
add cylinder rigid body
addSphere(double radius, {M3RigidBodyDesc? desc}) → M3RigidBody
add sphere rigid body
attachEntity(M3Entity entity, M3RigidBody body) → void
attach entity to physics body
detachEntity(M3Entity entity) → void
detach entity from physics body
dispose() → void
dispose physics system
init({Vector3? gravity}) → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
reset physics system
toString() → String
A string representation of this object.
inherited
update(double dt, {void onBeforeStep()?}) → void
update physics world

Operators

operator ==(Object other) → bool
The equality operator.
inherited