Shape class

A shape is used to detect collisions of rigid bodies.

Implementers

Constructors

Shape(ShapeConfig config)

Properties

aabb ↔ AABB
axis-aligned bounding box of the shape.
getter/setter pair
belongsTo ↔ int
bits of the collision groups to which the shape belongs.
getter/setter pair
collidesWith ↔ int
bits of the collision groups with which the shape collides.
getter/setter pair
linked list of the contacts with the shape.
getter/setter pair
density ↔ double
density of the shape.
getter/setter pair
friction ↔ double
coefficient of friction of the shape.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ int
global identification of the shape should be unique to the shape.
getter/setter pair
next ↔ Shape?
next shape in parent rigid body. Used for fast interations.
getter/setter pair
numContacts ↔ int
number of the contacts with the shape.
getter/setter pair
parent ↔ RigidBody?
parent rigid body of the shape.
getter/setter pair
position ↔ Vector3
center of gravity of the shape in world coordinate system.
getter/setter pair
prev ↔ Shape?
previous shape in parent rigid body. Used for fast interations.
getter/setter pair
proxy ↔ Proxy?
proxy of the shape used for broad-phase collision detection.
getter/setter pair
relativePosition ↔ Vector3
position of the shape in parent's coordinate system.
getter/setter pair
relativeRotation ↔ Matrix3
rotation matrix of the shape in parent's coordinate system.
getter/setter pair
restitution ↔ double
coefficient of restitution of the shape.
getter/setter pair
rotation ↔ Matrix3
rotation matrix of the shape in world coordinate system.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ Shapes
getter/setter pair

Methods

calculateMassInfo(MassInfo out) → void
Calculate the mass information of the shape.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
updateProxy() → void
Update the proxy of the shape.

Operators

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