This article's documentation is for anything that uses the Source engine. Click here for more information.

Info mass center: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add internal name target)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{base point|info_mass_center}}  
{{CD|CInfoMassCenter|file1=physobj.cpp}}
 
{{this is a|point entity|name=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}}
{{in code|class=class_c_info_mass_center.html CInfoMassCenter|file=physobj_8cpp-source.html 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]]

Latest revision as of 16:53, 17 May 2024

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

info_mass_center is a point entity available in all Source Source games. 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