PhysicsEvent3D class final

One event from a step. Begin and stay events carry a contact point, the normal pointing from bodyA to bodyB (zero for sensors) and how deep they overlap.

Constructors

PhysicsEvent3D(PhysicsEventType3D type, int bodyA, int bodyB, {Vector3? point, Vector3? normal, double depth = 0})
An event of type between bodyA and bodyB.

Properties

bodyA → int
The first body.
final
bodyB → int
The second body; 0 for activation events.
final
depth → double
How far they overlap.
final
hashCode → int
The hash code for this object.
no setterinherited
normal → Vector3
From A to B.
final
point → Vector3
Where they touch.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → PhysicsEventType3D
What happened.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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