| 115 | /////////////////////////////////////////// |
| 116 | |
| 117 | solid_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 |
no test coverage detected