CharacterContact3D class final

Something a character touches.

Constructors

CharacterContact3D({required int body, required int character, required Vector3 position, required Vector3 normal, required Vector3 velocity, required double distance, required bool isSensor, required bool hadCollision})
A contact with body or character.

Properties

body → int
The body touched, or 0.
final
character → int
The character touched, or 0.
final
distance → double
Zero or less when touching; more is a contact it expects.
final
hadCollision → bool
Whether the character actually ran into it.
final
hashCode → int
The hash code for this object.
no setterinherited
isSensor → bool
Whether the body touched is a sensor.
final
normal → Vector3
Pointing towards the character.
final
position → Vector3
Where.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
velocity → Vector3
How fast the point touched moves.
final

Methods

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