Capsule class

Capsule shape

Inheritance

Constructors

Capsule(ShapeConfig config, double radius, double height)
Capsule shape

Properties

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

Methods

calculateMassInfo(MassInfo out) → void
Calculate the mass information of the shape.
override
checkAABBAxis(double p1x, double p1y, double p2x, double p2y, double minx, double maxx, double miny, double maxy, double radius) → bool
copy(Capsule capsule) → void
getCenter(Vector3 target) → Vector3
intersectsBox(AABB box) → bool
lineLineMinimumPoints(Line line1, Line line2) → List<Vector3>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
translate(Vector3 v) → void
updateProxy() → void
Update the proxy of the shape.
override
volume() → double

Operators

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