Info mass center: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Add internal name target)
m (Template:in code -> Template:code class.)
Line 4: Line 4:
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


{{in code|class=class_c_info_mass_center.html CInfoMassCenter|file=physobj_8cpp-source.html physobj.cpp}}
{{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.}}

Revision as of 09:41, 15 May 2022

Template:Base point

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

C++ In code, it is represented by theCInfoMassCenterclass, defined in thephysobj.cppfile.

Keyvalues

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