MCPcopy Create free account
hub / github.com/defold/defold / GetCollisionObject

Function GetCollisionObject

engine/gamesys/src/gamesys/scripts/script_physics.cpp:530–534  ·  view source on GitHub ↗

Helper to get collisionobject component and world.

Source from the content-addressed store, hash-verified

528
529 // Helper to get collisionobject component and world.
530 static void GetCollisionObject(lua_State* L, int indx, dmGameObject::HCollection collection, CollisionComponent** comp, CollisionWorld** comp_world)
531 {
532 dmMessage::URL receiver;
533 dmGameObject::GetComponentFromLua(L, indx, collection, COLLISION_OBJECT_EXT, (void**) comp, &receiver, (void**) comp_world);
534 }
535
536 static int GetTableField(lua_State* L, int table_index, const char* table_field, int expected_type)
537 {

Callers 15

Physics_CreateJointFunction · 0.70
Physics_DestroyJointFunction · 0.70
Physics_SetFlipInternalFunction · 0.70
Physics_WakeupFunction · 0.70
Physics_SetGroupFunction · 0.70
Physics_GetGroupFunction · 0.70
Physics_SetMaskBitFunction · 0.70
Physics_GetMaskBitFunction · 0.70

Calls 1

GetComponentFromLuaFunction · 0.50

Tested by

no test coverage detected