Info mass center: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Template:in code -> Template:code class.)
(-added class hierarchy, entity template, vscript tip)
Line 1: Line 1:
{{base point|info_mass_center}}  
{{CD|CInfoMassCenter|file1=physobj.cpp}}
 
{{entity|type=e0|info_mass_center}}
==Entity description==
It overrides the mass center of the target physics prop or [[func_physbox]] by moving it to the [[info_mass_center]]'s location. Removed after map spawn
It overrides the mass center of the target physics prop or [[func_physbox]] by moving it to the [[info_mass_center]]'s location. Removed after map spawn
 
{{tip|If you want to use this entity using vscript you need to first spawn this entity and then the desired physics prop}}
{{code class|CInfoMassCenter|physobj.cpp}}


== Keyvalues ==
== Keyvalues ==
{{KV|Target object|intn=target|target_destination|The entity whose mass center will be overridden.}}
{{KV|Target object|intn=target|target_destination|The entity whose mass center will be overridden.}}
== See Also ==
* [[prop_physics]]
* [[func_physbox]]

Revision as of 06:41, 4 August 2023

C++ Class hierarchy
CInfoMassCenter
CPointEntity
CBaseEntity
C++ physobj.cpp

Template:Entity It overrides the mass center of the target physics prop or func_physbox by moving it to the info_mass_center's location. Removed after map spawn

Tip.pngTip:If you want to use this entity using vscript you need to first spawn this entity and then the desired physics prop

Keyvalues

Target object (target) <targetname>
The entity whose mass center will be overridden.


See Also