| 3187 | } |
| 3188 | |
| 3189 | void GetObjectsInHull(std::string path, mat4 transform, CScriptArray* array) { |
| 3190 | ContactInfoCallback cb; |
| 3191 | the_scenegraph->abstract_bullet_world_->GetConvexHullCollisions(path, transform, cb); |
| 3192 | for (int i = 0; i < cb.contact_info.size(); ++i) { |
| 3193 | BulletObject* bo = cb.contact_info[i].object; |
| 3194 | if (bo && bo->owner_object && the_scenegraph->IsObjectSane(bo->owner_object)) { |
| 3195 | int val = ((Object*)bo->owner_object)->GetID(); |
| 3196 | array->InsertLast(&val); |
| 3197 | } |
| 3198 | } |
| 3199 | } |
| 3200 | |
| 3201 | static void CreateCustomHull(const std::string& key, const CScriptArray& array) { |
| 3202 | std::vector<vec3> data; |
nothing calls this directly
no test coverage detected