Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 6 … 18 Next »
obb functions and Clientside Models
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
obb functions and Clientside Models
04-10-2020, 07:28 PM,
#1
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
obb functions and Clientside Models
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.

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
05-10-2020, 04:11 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: obb functions and Clientside Models
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.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.