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 (link)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{wrongtitle|title=info_mass_center}}
{{CD|CInfoMassCenter|file1=physobj.cpp}}
{{base_point}}
{{this is a|point entity|name=info_mass_center}}  
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}}


==Entity Description==
== Keyvalues ==
An [[entity]] that 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
{{KV|Target object|intn=target|target_destination|The entity whose mass center will be overridden.}}


{{in code|class=class_c_info_mass_center.html CInfoMassCenter|file=physobj_8cpp-source.html physobj.cpp}}


==Keyvalues==
== See also ==
*'''target'''
* [[prop_physics]]
:<target_destination> The entity whose mass center will be overridden.
* [[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