physics::World
kn::physics::World Declared in kraken/physics/World.hpp
At a glance
23 membersWorldfunction~WorldfunctioncreateDistanceJointfunctioncreateFilterJointfunctioncreateMotorJointfunctioncreateMouseJointfunctioncreatePrismaticJointfunctioncreateRevoluteJointfunctioncreateWeldJointfunctioncreateWheelJointfunctiongetCollisionsfunctiongetContactEventsfunctiongetSensorEventsfunctionqueryPointfunctionqueryAABBfunctionrayCastfunctionshapeCastfunctionfromMapLayerfunctionsetGravityfunctiongetGravityfunctionisValidfunctionstepfunctiondebugDrawfunctionReference
C++ APIWorld
functionNo description in the source header.
~World
function~World()No description in the source header.
createDistanceJoint
functionDistanceJoint createDistanceJoint(const Body &bodyA, const Body &bodyB, const Vec2 &anchorA, const Vec2 &anchorB)No description in the source header.
createFilterJoint
functionFilterJoint createFilterJoint(const Body &bodyA, const Body &bodyB)No description in the source header.
createMotorJoint
functionMotorJoint createMotorJoint(const Body &bodyA, const Body &bodyB)No description in the source header.
createMouseJoint
functionMouseJoint createMouseJoint(const Body &groundBody, const Body &pulledBody, const Vec2 &target)No description in the source header.
createPrismaticJoint
functionPrismaticJoint createPrismaticJoint(const Body &bodyA, const Body &bodyB, const Vec2 &anchor, const Vec2 &axis)No description in the source header.
createRevoluteJoint
functionRevoluteJoint createRevoluteJoint(const Body &bodyA, const Body &bodyB, const Vec2 &anchor)No description in the source header.
createWeldJoint
functionNo description in the source header.
createWheelJoint
functionWheelJoint createWheelJoint(const Body &bodyA, const Body &bodyB, const Vec2 &anchor, const Vec2 &axis)No description in the source header.
getCollisions
functionstd::vector< Collision > getCollisions()No description in the source header.
getContactEvents
functionconst std::vector< ContactEvent > & getContactEvents() constNo description in the source header.
getSensorEvents
functionconst std::vector< SensorEvent > & getSensorEvents() constNo description in the source header.
queryPoint
functionNo description in the source header.
queryAABB
functionNo description in the source header.
rayCast
functionNo description in the source header.
std::vector< CastHit > shapeCast(const Circle &circle, const Transform &transform, const Vec2 &translation)std::vector< CastHit > shapeCast(const Capsule &capsule, const Transform &transform, const Vec2 &translation)No description in the source header.
fromMapLayer
functionStaticBody fromMapLayer(const tilemap::Layer &layer)No description in the source header.
setGravity
functionvoid setGravity(const Vec2 &gravity)No description in the source header.
getGravity
functionVec2 getGravity() constNo description in the source header.
isValid
functionbool isValid() constNo description in the source header.
step
functionvoid step(float delta)No description in the source header.
debugDraw
functionvoid debugDraw(const Color &color=Color::RED, const DebugDrawOptions &options={}) constNo description in the source header.