Raised This Month: $ Target: $400
 0% 

m_vecOrigin [offset] vs. m_vecAbsOrigin [coordinate]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-04-2022 , 07:39   m_vecOrigin [offset] vs. m_vecAbsOrigin [coordinate]
Reply With Quote #1

Here quick tip about these two.

m_vecOrigin (Prop_Send, Prop_Data)
- Think this as "offset".
When entity has no parent (attached to anything), it give "offset" values from world coordinate 0.0, 0.0, 0.0
When entity is attached to another entity, it give "offset" values from parent entity origin (or parent attachment point).
- It is not world "coordinates".
"Offset" zero point is either center of world 0.0, 0.0, 0.0 or from parent entity origin (or parent attachment point).


m_vecAbsOrigin (Prop_Data)
- This give entity "coordinates" from world.






I learned today... harder way... by troubleshooting problem with bumpmines.
Bacardi is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode