|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|

Go to the source code of this file.
Functions | |
| int | physics_createRevoluteJoint (uint32_t entityIdA, uint32_t entityIdB, float anchorAx, float anchorAy, float anchorBx, float anchorBy, int enableMotor, float motorSpeed, float maxMotorTorque, int enableLimit, float lowerAngle, float upperAngle, int collideConnected) |
| void | physics_destroyJoint (uint32_t entityId) |
| void | physics_setRevoluteMotorSpeed (uint32_t entityId, float speed) |
| void | physics_setRevoluteMaxMotorTorque (uint32_t entityId, float torque) |
| void | physics_enableRevoluteMotor (uint32_t entityId, int enable) |
| void | physics_enableRevoluteLimit (uint32_t entityId, int enable) |
| void | physics_setRevoluteLimits (uint32_t entityId, float lower, float upper) |
| float | physics_getRevoluteAngle (uint32_t entityId) |
| float | physics_getRevoluteMotorTorque (uint32_t entityId) |
| int | physics_hasJoint (uint32_t entityId) |
| int | physics_createDistanceJoint (uint32_t entityIdA, uint32_t entityIdB, float anchorAx, float anchorAy, float anchorBx, float anchorBy, float length, int enableSpring, float hertz, float dampingRatio, int enableLimit, float minLength, float maxLength, int enableMotor, float maxMotorForce, float motorSpeed, int collideConnected) |
| int | physics_createPrismaticJoint (uint32_t entityIdA, uint32_t entityIdB, float anchorAx, float anchorAy, float anchorBx, float anchorBy, float axisX, float axisY, int enableSpring, float hertz, float dampingRatio, int enableLimit, float lowerTranslation, float upperTranslation, int enableMotor, float maxMotorForce, float motorSpeed, int collideConnected) |
| int | physics_createWeldJoint (uint32_t entityIdA, uint32_t entityIdB, float anchorAx, float anchorAy, float anchorBx, float anchorBy, float linearHertz, float angularHertz, float linearDampingRatio, float angularDampingRatio, int collideConnected) |
| int | physics_createWheelJoint (uint32_t entityIdA, uint32_t entityIdB, float anchorAx, float anchorAy, float anchorBx, float anchorBy, float axisX, float axisY, int enableSpring, float hertz, float dampingRatio, int enableLimit, float lowerTranslation, float upperTranslation, int enableMotor, float maxMotorTorque, float motorSpeed, int collideConnected) |
| float | physics_getDistanceJointLength (uint32_t entityId) |
| float | physics_getDistanceJointCurrentLength (uint32_t entityId) |
| void | physics_setDistanceJointLength (uint32_t entityId, float length) |
| void | physics_enableDistanceJointSpring (uint32_t entityId, int enable) |
| void | physics_enableDistanceJointLimit (uint32_t entityId, int enable) |
| void | physics_setDistanceJointLimits (uint32_t entityId, float minLength, float maxLength) |
| void | physics_enableDistanceJointMotor (uint32_t entityId, int enable) |
| void | physics_setDistanceJointMotorSpeed (uint32_t entityId, float speed) |
| void | physics_setDistanceJointMaxMotorForce (uint32_t entityId, float force) |
| float | physics_getDistanceJointMotorForce (uint32_t entityId) |
| float | physics_getPrismaticJointTranslation (uint32_t entityId) |
| float | physics_getPrismaticJointSpeed (uint32_t entityId) |
| void | physics_enablePrismaticJointSpring (uint32_t entityId, int enable) |
| void | physics_enablePrismaticJointLimit (uint32_t entityId, int enable) |
| void | physics_setPrismaticJointLimits (uint32_t entityId, float lower, float upper) |
| void | physics_enablePrismaticJointMotor (uint32_t entityId, int enable) |
| void | physics_setPrismaticJointMotorSpeed (uint32_t entityId, float speed) |
| void | physics_setPrismaticJointMaxMotorForce (uint32_t entityId, float force) |
| float | physics_getPrismaticJointMotorForce (uint32_t entityId) |
| void | physics_enableWheelJointSpring (uint32_t entityId, int enable) |
| void | physics_enableWheelJointLimit (uint32_t entityId, int enable) |
| void | physics_setWheelJointLimits (uint32_t entityId, float lower, float upper) |
| void | physics_enableWheelJointMotor (uint32_t entityId, int enable) |
| void | physics_setWheelJointMotorSpeed (uint32_t entityId, float speed) |
| void | physics_setWheelJointMaxMotorTorque (uint32_t entityId, float torque) |
| float | physics_getWheelJointMotorTorque (uint32_t entityId) |
| int | physics_createMotorJoint (uint32_t entityIdA, uint32_t entityIdB, float linearVelX, float linearVelY, float maxVelocityForce, float angularVelocity, float maxVelocityTorque, float linearHertz, float linearDampingRatio, float maxSpringForce, float angularHertz, float angularDampingRatio, float maxSpringTorque, int collideConnected) |
| void | physics_setMotorJointLinearVelocity (uint32_t entityId, float vx, float vy) |
| void | physics_setMotorJointAngularVelocity (uint32_t entityId, float omega) |
| void | physics_setMotorJointMaxVelocityForce (uint32_t entityId, float force) |
| void | physics_setMotorJointMaxVelocityTorque (uint32_t entityId, float torque) |
| int | physics_createMouseJoint (uint32_t entityId, float targetX, float targetY, float hertz, float dampingRatio, float maxForce) |
| void | physics_setMouseTarget (float targetX, float targetY) |
| void | physics_destroyMouseJoint () |
| int | physics_hasMouseJoint () |
| int physics_createDistanceJoint | ( | uint32_t | entityIdA, |
| uint32_t | entityIdB, | ||
| float | anchorAx, | ||
| float | anchorAy, | ||
| float | anchorBx, | ||
| float | anchorBy, | ||
| float | length, | ||
| int | enableSpring, | ||
| float | hertz, | ||
| float | dampingRatio, | ||
| int | enableLimit, | ||
| float | minLength, | ||
| float | maxLength, | ||
| int | enableMotor, | ||
| float | maxMotorForce, | ||
| float | motorSpeed, | ||
| int | collideConnected ) |
Definition at line 115 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_createMotorJoint | ( | uint32_t | entityIdA, |
| uint32_t | entityIdB, | ||
| float | linearVelX, | ||
| float | linearVelY, | ||
| float | maxVelocityForce, | ||
| float | angularVelocity, | ||
| float | maxVelocityTorque, | ||
| float | linearHertz, | ||
| float | linearDampingRatio, | ||
| float | maxSpringForce, | ||
| float | angularHertz, | ||
| float | angularDampingRatio, | ||
| float | maxSpringTorque, | ||
| int | collideConnected ) |
Definition at line 441 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_createMouseJoint | ( | uint32_t | entityId, |
| float | targetX, | ||
| float | targetY, | ||
| float | hertz, | ||
| float | dampingRatio, | ||
| float | maxForce ) |
Definition at line 506 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_createPrismaticJoint | ( | uint32_t | entityIdA, |
| uint32_t | entityIdB, | ||
| float | anchorAx, | ||
| float | anchorAy, | ||
| float | anchorBx, | ||
| float | anchorBy, | ||
| float | axisX, | ||
| float | axisY, | ||
| int | enableSpring, | ||
| float | hertz, | ||
| float | dampingRatio, | ||
| int | enableLimit, | ||
| float | lowerTranslation, | ||
| float | upperTranslation, | ||
| int | enableMotor, | ||
| float | maxMotorForce, | ||
| float | motorSpeed, | ||
| int | collideConnected ) |
Definition at line 152 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_createRevoluteJoint | ( | uint32_t | entityIdA, |
| uint32_t | entityIdB, | ||
| float | anchorAx, | ||
| float | anchorAy, | ||
| float | anchorBx, | ||
| float | anchorBy, | ||
| int | enableMotor, | ||
| float | motorSpeed, | ||
| float | maxMotorTorque, | ||
| int | enableLimit, | ||
| float | lowerAngle, | ||
| float | upperAngle, | ||
| int | collideConnected ) |
Definition at line 11 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_createWeldJoint | ( | uint32_t | entityIdA, |
| uint32_t | entityIdB, | ||
| float | anchorAx, | ||
| float | anchorAy, | ||
| float | anchorBx, | ||
| float | anchorBy, | ||
| float | linearHertz, | ||
| float | angularHertz, | ||
| float | linearDampingRatio, | ||
| float | angularDampingRatio, | ||
| int | collideConnected ) |
Definition at line 197 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_createWheelJoint | ( | uint32_t | entityIdA, |
| uint32_t | entityIdB, | ||
| float | anchorAx, | ||
| float | anchorAy, | ||
| float | anchorBx, | ||
| float | anchorBy, | ||
| float | axisX, | ||
| float | axisY, | ||
| int | enableSpring, | ||
| float | hertz, | ||
| float | dampingRatio, | ||
| int | enableLimit, | ||
| float | lowerTranslation, | ||
| float | upperTranslation, | ||
| int | enableMotor, | ||
| float | maxMotorTorque, | ||
| float | motorSpeed, | ||
| int | collideConnected ) |
Definition at line 227 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_destroyJoint | ( | uint32_t | entityId | ) |
Definition at line 43 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_destroyMouseJoint | ( | ) |
Definition at line 560 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_enableDistanceJointLimit | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 298 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enableDistanceJointMotor | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 310 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enableDistanceJointSpring | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 292 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enablePrismaticJointLimit | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 355 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enablePrismaticJointMotor | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 367 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enablePrismaticJointSpring | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 349 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enableRevoluteLimit | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 78 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_enableRevoluteMotor | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 70 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_enableWheelJointLimit | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 398 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enableWheelJointMotor | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 410 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_enableWheelJointSpring | ( | uint32_t | entityId, |
| int | enable ) |
Definition at line 392 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getDistanceJointCurrentLength | ( | uint32_t | entityId | ) |
Definition at line 279 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getDistanceJointLength | ( | uint32_t | entityId | ) |
Definition at line 272 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getDistanceJointMotorForce | ( | uint32_t | entityId | ) |
Definition at line 328 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getPrismaticJointMotorForce | ( | uint32_t | entityId | ) |
Definition at line 385 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getPrismaticJointSpeed | ( | uint32_t | entityId | ) |
Definition at line 342 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getPrismaticJointTranslation | ( | uint32_t | entityId | ) |
Definition at line 335 of file PhysicsJoints.cpp.
References findValidJoint().
| float physics_getRevoluteAngle | ( | uint32_t | entityId | ) |
Definition at line 94 of file PhysicsJoints.cpp.
References g_ctx.
| float physics_getRevoluteMotorTorque | ( | uint32_t | entityId | ) |
Definition at line 102 of file PhysicsJoints.cpp.
References g_ctx.
| float physics_getWheelJointMotorTorque | ( | uint32_t | entityId | ) |
Definition at line 428 of file PhysicsJoints.cpp.
References findValidJoint().
| int physics_hasJoint | ( | uint32_t | entityId | ) |
Definition at line 110 of file PhysicsJoints.cpp.
References g_ctx.
| int physics_hasMouseJoint | ( | ) |
Definition at line 568 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_setDistanceJointLength | ( | uint32_t | entityId, |
| float | length ) |
Definition at line 286 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setDistanceJointLimits | ( | uint32_t | entityId, |
| float | minLength, | ||
| float | maxLength ) |
Definition at line 304 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setDistanceJointMaxMotorForce | ( | uint32_t | entityId, |
| float | force ) |
Definition at line 322 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setDistanceJointMotorSpeed | ( | uint32_t | entityId, |
| float | speed ) |
Definition at line 316 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setMotorJointAngularVelocity | ( | uint32_t | entityId, |
| float | omega ) |
Definition at line 481 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setMotorJointLinearVelocity | ( | uint32_t | entityId, |
| float | vx, | ||
| float | vy ) |
Definition at line 475 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setMotorJointMaxVelocityForce | ( | uint32_t | entityId, |
| float | force ) |
Definition at line 487 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setMotorJointMaxVelocityTorque | ( | uint32_t | entityId, |
| float | torque ) |
Definition at line 493 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setMouseTarget | ( | float | targetX, |
| float | targetY ) |
Definition at line 550 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_setPrismaticJointLimits | ( | uint32_t | entityId, |
| float | lower, | ||
| float | upper ) |
Definition at line 361 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setPrismaticJointMaxMotorForce | ( | uint32_t | entityId, |
| float | force ) |
Definition at line 379 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setPrismaticJointMotorSpeed | ( | uint32_t | entityId, |
| float | speed ) |
Definition at line 373 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setRevoluteLimits | ( | uint32_t | entityId, |
| float | lower, | ||
| float | upper ) |
Definition at line 86 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_setRevoluteMaxMotorTorque | ( | uint32_t | entityId, |
| float | torque ) |
Definition at line 62 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_setRevoluteMotorSpeed | ( | uint32_t | entityId, |
| float | speed ) |
Definition at line 54 of file PhysicsJoints.cpp.
References g_ctx.
| void physics_setWheelJointLimits | ( | uint32_t | entityId, |
| float | lower, | ||
| float | upper ) |
Definition at line 404 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setWheelJointMaxMotorTorque | ( | uint32_t | entityId, |
| float | torque ) |
Definition at line 422 of file PhysicsJoints.cpp.
References findValidJoint().
| void physics_setWheelJointMotorSpeed | ( | uint32_t | entityId, |
| float | speed ) |
Definition at line 416 of file PhysicsJoints.cpp.
References findValidJoint().