PhysicsWorld

Undocumented in source.

Constructors

this
this(Owner owner, size_t maxCollisions)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addConstraint
Constraint addConstraint(Constraint c)
Undocumented in source. Be warned that the author may not have intended to support it.
addDynamicBody
RigidBody addDynamicBody(Vector3f pos, float mass)
Undocumented in source. Be warned that the author may not have intended to support it.
addSensor
ShapeComponent addSensor(RigidBody b, Geometry geom, Vector3f position)
Undocumented in source. Be warned that the author may not have intended to support it.
addShapeComponent
ShapeComponent addShapeComponent(RigidBody b, Geometry geom, Vector3f position, float mass)
Undocumented in source. Be warned that the author may not have intended to support it.
addStaticBody
RigidBody addStaticBody(Vector3f pos)
Undocumented in source. Be warned that the author may not have intended to support it.
checkCollisionPair
void checkCollisionPair(ShapeComponent shape1, ShapeComponent shape2, Contact c)
Undocumented in source. Be warned that the author may not have intended to support it.
checkCollisionTraverse
void checkCollisionTraverse(T obj)
Undocumented in source. Be warned that the author may not have intended to support it.
findDynamicCollisionsBroadphase
void findDynamicCollisionsBroadphase()
Undocumented in source. Be warned that the author may not have intended to support it.
findDynamicCollisionsBruteForce
void findDynamicCollisionsBruteForce()
Undocumented in source. Be warned that the author may not have intended to support it.
findStaticCollisionsBruteForce
void findStaticCollisionsBruteForce()
Undocumented in source. Be warned that the author may not have intended to support it.
raycast
bool raycast(Vector3f rayStart, Vector3f rayDir, float maxRayDist, CastResult castResult, bool checkAgainstBodies, bool checkAgainstBVH)
Undocumented in source. Be warned that the author may not have intended to support it.
solveConstraints
void solveConstraints(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

broadphase
bool broadphase;
Undocumented in source.
bvhRoot
BVHNode!Triangle bvhRoot;
Undocumented in source.
constraintIterations
uint constraintIterations;
Undocumented in source.
constraints
DynamicArray!Constraint constraints;
Undocumented in source.
dynamicBodies
DynamicArray!RigidBody dynamicBodies;
Undocumented in source.
gravity
Vector3f gravity;
Undocumented in source.
manifolds
ContactCache manifolds;
Undocumented in source.
maxShapeId
uint maxShapeId;
Undocumented in source.
positionCorrectionIterations
uint positionCorrectionIterations;
Undocumented in source.
proxyTri
RigidBody proxyTri;
Undocumented in source.
proxyTriGeom
GeomTriangle proxyTriGeom;
Undocumented in source.
proxyTriShape
ShapeComponent proxyTriShape;
Undocumented in source.
shapeComponents
DynamicArray!ShapeComponent shapeComponents;
Undocumented in source.
staticBodies
DynamicArray!RigidBody staticBodies;
Undocumented in source.
warmstart
bool warmstart;
Undocumented in source.

Meta