MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetObjectsInHull

Function GetObjectsInHull

Source/Scripting/angelscript/asfuncs.cpp:3189–3199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3187}
3188
3189void 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
3201static void CreateCustomHull(const std::string& key, const CScriptArray& array) {
3202 std::vector<vec3> data;

Callers

nothing calls this directly

Calls 5

IsObjectSaneMethod · 0.80
sizeMethod · 0.45
GetIDMethod · 0.45
InsertLastMethod · 0.45

Tested by

no test coverage detected