Team Spartan Cookies & Milk Forums
obb functions and Clientside Models - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: obb functions and Clientside Models (/thread-3466.html)



obb functions and Clientside Models - The17thDoctor - 04-10-2020

Clientside Models always returns 0 or Vector(0,0,0) when asking for things like obbMins() obbMaxs() obbSize() and such regardless of them being drawn or not. I believe it should be possible to get their size but maybe I am mistaken.


RE: obb functions and Clientside Models - Person8880 - 05-10-2020

The OBB methods make use of the collision properties of an entity. Clientside models have no collisions, hence why they return 0.

I've added Entity:getModelBounds() which will return the original bounds of the model the entity is using which works for clientside models as well as normal entities.