Info mass center: Difference between revisions
Jump to navigation
Jump to search
Tip:If you want to use this entity using vscript you need to first spawn this entity and then the desired physics prop
(-added class hierarchy, entity template, vscript tip) |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{CD|CInfoMassCenter|file1=physobj.cpp}} | {{CD|CInfoMassCenter|file1=physobj.cpp}} | ||
{{entity| | {{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 | 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}} | {{tip|If you want to use this entity using vscript you need to first spawn this entity and then the desired physics prop}} | ||
Line 8: | Line 8: | ||
== See | == See also == | ||
* [[prop_physics]] | * [[prop_physics]] | ||
* [[func_physbox]] | * [[func_physbox]] |
Latest revision as of 16:53, 17 May 2024
![]() |
---|
CInfoMassCenter |
![]() |
info_mass_center
is a point entity available in all 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

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