|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include "./PhysicsContext.hpp"
Go to the source code of this file.
Functions | |
| b2JointId | findValidJoint (uint32_t entityId) |
| b2BodyId | findValidBody (uint32_t entityId) |
| uint32_t | entityFromBody (b2BodyId bodyId) |
| uint32_t | entityFromShape (b2ShapeId shapeId) |
| void | pushEntityBits (std::vector< float > &buf, uint32_t entityId) |
Variables | |
| PhysicsContext | g_ctx |
| std::vector< float > | g_raycastBuffer |
| std::vector< float > | g_overlapBuffer |
| std::vector< float > | g_shapeCastBuffer |
| float | g_massDataBuffer [2] = {} |
| uint32_t entityFromBody | ( | b2BodyId | bodyId | ) |
Definition at line 26 of file PhysicsContext.cpp.
Referenced by entityFromShape().
| uint32_t entityFromShape | ( | b2ShapeId | shapeId | ) |
Definition at line 32 of file PhysicsContext.cpp.
References entityFromBody().
Referenced by headroomCastCallback(), moverPlaneCallback(), overlapCallback(), physics_collectEvents(), preSolveOneWayPlatform(), raycastCallback(), shapeCastCallback(), and snapCastCallback().
| b2BodyId findValidBody | ( | uint32_t | entityId | ) |
Definition at line 19 of file PhysicsContext.cpp.
References g_ctx.
Referenced by physics_getBodyCenterOfMass(), physics_getBodyInertia(), physics_getBodyMass(), and physics_setBodyEnabled().
| b2JointId findValidJoint | ( | uint32_t | entityId | ) |
Definition at line 12 of file PhysicsContext.cpp.
References g_ctx.
Referenced by physics_enableDistanceJointLimit(), physics_enableDistanceJointMotor(), physics_enableDistanceJointSpring(), physics_enablePrismaticJointLimit(), physics_enablePrismaticJointMotor(), physics_enablePrismaticJointSpring(), physics_enableWheelJointLimit(), physics_enableWheelJointMotor(), physics_enableWheelJointSpring(), physics_getDistanceJointCurrentLength(), physics_getDistanceJointLength(), physics_getDistanceJointMotorForce(), physics_getPrismaticJointMotorForce(), physics_getPrismaticJointSpeed(), physics_getPrismaticJointTranslation(), physics_getWheelJointMotorTorque(), physics_setDistanceJointLength(), physics_setDistanceJointLimits(), physics_setDistanceJointMaxMotorForce(), physics_setDistanceJointMotorSpeed(), physics_setMotorJointAngularVelocity(), physics_setMotorJointLinearVelocity(), physics_setMotorJointMaxVelocityForce(), physics_setMotorJointMaxVelocityTorque(), physics_setPrismaticJointLimits(), physics_setPrismaticJointMaxMotorForce(), physics_setPrismaticJointMotorSpeed(), physics_setWheelJointLimits(), physics_setWheelJointMaxMotorTorque(), and physics_setWheelJointMotorSpeed().
| void pushEntityBits | ( | std::vector< float > & | buf, |
| uint32_t | entityId ) |
Definition at line 37 of file PhysicsContext.cpp.
Referenced by overlapCallback(), physics_capturePoses(), physics_collectEvents(), physics_getDynamicBodyTransforms(), raycastCallback(), and shapeCastCallback().
| PhysicsContext g_ctx |
Definition at line 5 of file PhysicsContext.cpp.
Referenced by db_createInstance(), db_destroyInstance(), db_fadeInAnimation(), db_getAnimations(), db_getArmatures(), db_getAtlasImageName(), db_getBonePoses(), db_getBones(), db_getBounds(), db_getLastError(), db_getMeshBatchCount(), db_getMeshBatchData(), db_getMeshBatchIndexCount(), db_getMeshBatchVertexCount(), db_loadSkeleton(), db_playAnimation(), db_setAtlasTexture(), db_setColor(), db_setTimeScale(), db_stopAnimation(), db_unloadSkeleton(), db_update(), findValidBody(), findValidJoint(), headroomCastCallback(), oneWayAdmits(), physics_addBoxShape(), physics_addCapsuleShape(), physics_addChainShape(), physics_addCircleShape(), physics_addPolygonShape(), physics_addSegmentShape(), physics_applyAngularImpulse(), physics_applyForce(), physics_applyImpulse(), physics_applyTorque(), physics_capturePoses(), physics_clearShapes(), physics_collectEvents(), physics_collisionEnterBytes(), physics_collisionExitBytes(), physics_createBody(), physics_createDistanceJoint(), physics_createMotorJoint(), physics_createMouseJoint(), physics_createPrismaticJoint(), physics_createRevoluteJoint(), physics_createWeldJoint(), physics_createWheelJoint(), physics_destroyBody(), physics_destroyJoint(), physics_destroyMouseJoint(), physics_dynamicBodyTransformsBytes(), physics_enableRevoluteLimit(), physics_enableRevoluteMotor(), physics_getAngularVelocity(), physics_getBodyCount(), physics_getCollisionEnterBuffer(), physics_getCollisionEnterCount(), physics_getCollisionExitBuffer(), physics_getCollisionExitCount(), physics_getDynamicBodyCount(), physics_getDynamicBodyTransforms(), physics_getGravity(), physics_getHitEventBuffer(), physics_getHitEventCount(), physics_getInterpolatedCount(), physics_getInterpolatedTransforms(), physics_getJointCount(), physics_getLinearVelocity(), physics_getRevoluteAngle(), physics_getRevoluteMotorTorque(), physics_getSensorEnterBuffer(), physics_getSensorEnterCount(), physics_getSensorExitBuffer(), physics_getSensorExitCount(), physics_getShapeCount(), physics_getTrackingRows(), physics_hasBody(), physics_hasJoint(), physics_hasMouseJoint(), physics_hitEventBytes(), physics_init(), physics_interpolatedTransformsBytes(), physics_isAwake(), physics_moveCharacter(), physics_overlapAABB(), physics_overlapCircle(), physics_raycast(), physics_sensorEnterBytes(), physics_sensorExitBytes(), physics_setAngularVelocity(), physics_setAwake(), physics_setBodyEnabled(), physics_setBodyTargetTransform(), physics_setBodyTransform(), physics_setBodyTransforms(), physics_setGravity(), physics_setLinearVelocity(), physics_setMouseTarget(), physics_setOneWayPlatform(), physics_setOneWayPlatformLocal(), physics_setRevoluteLimits(), physics_setRevoluteMaxMotorTorque(), physics_setRevoluteMotorSpeed(), physics_setWorldConfig(), physics_shapeCastBox(), physics_shapeCastCapsule(), physics_shapeCastCircle(), physics_shutdown(), physics_step(), physics_updateBodyProperties(), preSolveOneWayPlatform(), spine_addAnimation(), spine_advanceAndApply(), spine_clearEvents(), spine_clipBudget(), spine_createInstance(), spine_destroyInstance(), spine_enableEvents(), spine_eventBufferBytes(), spine_getAnimationDuration(), spine_getAnimations(), spine_getAtlasPageCount(), spine_getAtlasPageTextureName(), spine_getBonePoses(), spine_getBonePosition(), spine_getBoneRotation(), spine_getBones(), spine_getBounds(), spine_getEventAnimationName(), spine_getEventBuffer(), spine_getEventCount(), spine_getEventName(), spine_getEventStringValue(), spine_getLastError(), spine_getMeshBatchColorPremultiplied(), spine_getMeshBatchCount(), spine_getMeshBatchData(), spine_getMeshBatchIndexCount(), spine_getMeshBatchVertexCount(), spine_getPathConstraintMix(), spine_getSkeletonBounds(), spine_getSkins(), spine_getTransformConstraintMix(), spine_listConstraints(), spine_loadSkeleton(), spine_materializeWorldPose(), spine_playAnimation(), spine_probe_clip_start(), spine_probe_extract(), spine_probe_pose(), spine_probe_storage(), spine_requiresContinuousWorldPose(), spine_setAtlasPageTexture(), spine_setAttachment(), spine_setClippingEnabled(), spine_setDefaultMix(), spine_setIKTarget(), spine_setMixDuration(), spine_setPathConstraintMix(), spine_setSkeletonColor(), spine_setSkin(), spine_setSlotColor(), spine_setToSetupPose(), spine_setTrackAlpha(), spine_setTransformConstraintMix(), spine_unloadSkeleton(), and spine_update().
| float g_massDataBuffer[2] = {} |
Definition at line 10 of file PhysicsContext.cpp.
Referenced by physics_getBodyCenterOfMass().
| std::vector<float> g_overlapBuffer |
Definition at line 8 of file PhysicsContext.cpp.
Referenced by overlapCallback(), physics_getOverlapBuffer(), physics_overlapAABB(), physics_overlapBytes(), and physics_overlapCircle().
| std::vector<float> g_raycastBuffer |
Definition at line 7 of file PhysicsContext.cpp.
Referenced by physics_getRaycastBuffer(), physics_raycast(), physics_raycastBytes(), and raycastCallback().
| std::vector<float> g_shapeCastBuffer |
Definition at line 9 of file PhysicsContext.cpp.
Referenced by physics_getShapeCastBuffer(), physics_shapeCastBox(), physics_shapeCastBytes(), physics_shapeCastCapsule(), physics_shapeCastCircle(), and shapeCastCallback().