MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / solid_create

Function solid_create

StereoKitC/systems/physics.cpp:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115///////////////////////////////////////////
116
117solid_t solid_create(const vec3 &position, const quat &rotation, solid_type_ type) {
118 solid_t result = (_solid_t*)assets_allocate(asset_type_solid);
119#if !defined(SK_PHYSICS_PASSTHROUGH)
120 result->data = physics_world->createRigidBody(Transform((Vector3 &)position, (Quaternion &)rotation));
121#endif
122 solid_set_type(result, type);
123 return result;
124}
125
126///////////////////////////////////////////
127

Callers 2

common_initFunction · 0.85
input_hand_initFunction · 0.85

Calls 2

assets_allocateFunction · 0.85
solid_set_typeFunction · 0.85

Tested by

no test coverage detected