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

Function GetCharactersInHull

Source/Scripting/angelscript/asfuncs.cpp:3174–3187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3172}
3173
3174void GetCharactersInHull(std::string path, mat4 transform, CScriptArray* array) {
3175 ContactInfoCallback cb;
3176 the_scenegraph->abstract_bullet_world_->GetConvexHullCollisions(path, transform, cb);
3177 for (int i = 0; i < cb.contact_info.size(); ++i) {
3178 BulletObject* bo = cb.contact_info[i].object;
3179 if (bo && bo->owner_object && the_scenegraph->IsObjectSane(bo->owner_object) && bo->owner_object->GetType() == _movement_object) {
3180 MovementObject* mo = (MovementObject*)bo->owner_object;
3181 if (mo->visible) {
3182 int val = mo->GetID();
3183 array->InsertLast(&val);
3184 }
3185 }
3186 }
3187}
3188
3189void GetObjectsInHull(std::string path, mat4 transform, CScriptArray* array) {
3190 ContactInfoCallback cb;

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected