|
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 | |
| void | physics_addBoxShape (uint32_t entityId, float halfW, float halfH, float offX, float offY, float radius, float density, float friction, float restitution, int isSensor, uint32_t categoryBits, uint32_t maskBits) |
| void | physics_addCircleShape (uint32_t entityId, float radius, float offX, float offY, float density, float friction, float restitution, int isSensor, uint32_t categoryBits, uint32_t maskBits) |
| void | physics_addCapsuleShape (uint32_t entityId, float radius, float halfHeight, float offX, float offY, float density, float friction, float restitution, int isSensor, uint32_t categoryBits, uint32_t maskBits) |
| void | physics_addSegmentShape (uint32_t entityId, float x1, float y1, float x2, float y2, float density, float friction, float restitution, int isSensor, uint32_t categoryBits, uint32_t maskBits) |
| void | physics_addPolygonShape (uint32_t entityId, uintptr_t verticesPtr, int vertexCount, float radius, float density, float friction, float restitution, int isSensor, uint32_t categoryBits, uint32_t maskBits) |
| void | physics_addChainShape (uint32_t entityId, uintptr_t pointsPtr, int pointCount, int isLoop, float friction, float restitution, uint32_t categoryBits, uint32_t maskBits) |
| void | physics_clearShapes (uint32_t entityId) |
| void physics_addBoxShape | ( | uint32_t | entityId, |
| float | halfW, | ||
| float | halfH, | ||
| float | offX, | ||
| float | offY, | ||
| float | radius, | ||
| float | density, | ||
| float | friction, | ||
| float | restitution, | ||
| int | isSensor, | ||
| uint32_t | categoryBits, | ||
| uint32_t | maskBits ) |
Definition at line 10 of file PhysicsShapes.cpp.
References g_ctx.
| void physics_addCapsuleShape | ( | uint32_t | entityId, |
| float | radius, | ||
| float | halfHeight, | ||
| float | offX, | ||
| float | offY, | ||
| float | density, | ||
| float | friction, | ||
| float | restitution, | ||
| int | isSensor, | ||
| uint32_t | categoryBits, | ||
| uint32_t | maskBits ) |
Definition at line 68 of file PhysicsShapes.cpp.
References g_ctx.
| void physics_addChainShape | ( | uint32_t | entityId, |
| uintptr_t | pointsPtr, | ||
| int | pointCount, | ||
| int | isLoop, | ||
| float | friction, | ||
| float | restitution, | ||
| uint32_t | categoryBits, | ||
| uint32_t | maskBits ) |
Definition at line 158 of file PhysicsShapes.cpp.
References esengine::boundarySpan(), and g_ctx.
| void physics_addCircleShape | ( | uint32_t | entityId, |
| float | radius, | ||
| float | offX, | ||
| float | offY, | ||
| float | density, | ||
| float | friction, | ||
| float | restitution, | ||
| int | isSensor, | ||
| uint32_t | categoryBits, | ||
| uint32_t | maskBits ) |
Definition at line 41 of file PhysicsShapes.cpp.
References g_ctx.
| void physics_addPolygonShape | ( | uint32_t | entityId, |
| uintptr_t | verticesPtr, | ||
| int | vertexCount, | ||
| float | radius, | ||
| float | density, | ||
| float | friction, | ||
| float | restitution, | ||
| int | isSensor, | ||
| uint32_t | categoryBits, | ||
| uint32_t | maskBits ) |
Definition at line 122 of file PhysicsShapes.cpp.
References esengine::boundarySpan(), and g_ctx.
| void physics_addSegmentShape | ( | uint32_t | entityId, |
| float | x1, | ||
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | density, | ||
| float | friction, | ||
| float | restitution, | ||
| int | isSensor, | ||
| uint32_t | categoryBits, | ||
| uint32_t | maskBits ) |
Definition at line 96 of file PhysicsShapes.cpp.
References g_ctx.
| void physics_clearShapes | ( | uint32_t | entityId | ) |
Definition at line 196 of file PhysicsShapes.cpp.
References g_ctx.