CPhysForce: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Overview == ... '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/phys_controller.h /game/server/phys_controller.h]''' ==[...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
A generic base class which implements a force/motion controller. | |||
'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/phys_controller. | '''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]''' | ||
==[[Classes|Class Structure]]== | ==[[Classes|Class Structure]]== | ||
Line 8: | Line 8: | ||
**'''[[CPointEntity]]''' | **'''[[CPointEntity]]''' | ||
***'''CPhysForce''' | ***'''CPhysForce''' | ||
== Entity DataMaps == | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0; | |||
|+CPhysForce | |||
! style="width: 50%; background-color: #303030; color: white" |Name | |||
! style="width: 15%; background-color: #303030; color: white" |Type | |||
! style="width: 35%; background-color: #303030; color: white" |Description | |||
|- | |||
| style="width: 50%;" |'''CPhysForceForceOff''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputActivate''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputDeactivate''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputForceScale''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_attachedObject''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_force''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_forceTime''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| colspan="3" style="padding: 0; margin: 0;" | | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;" | |||
! colspan="3" |m_integrator | |||
|- | |||
| style="width: 50%;" |'''m_angular''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_angularSave''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_controlType''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_linear''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_linearSave''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|} | |||
|- | |||
| style="width: 50%;" |'''m_nameAttach''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_pController''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|} |
Latest revision as of 20:15, 10 July 2022
Overview[edit | edit source]
A generic base class which implements a force/motion controller.
Source location : /game/server/phys_controller.cpp
Class Structure[edit | edit source]
- CBaseEntity
- CPointEntity
- CPhysForce
- CPointEntity
Entity DataMaps[edit | edit source]
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CPhysForceForceOff | ||||||||||||||||||||
InputActivate | ||||||||||||||||||||
InputDeactivate | ||||||||||||||||||||
InputForceScale | ||||||||||||||||||||
m_attachedObject | ||||||||||||||||||||
m_force | ||||||||||||||||||||
m_forceTime | ||||||||||||||||||||
| ||||||||||||||||||||
m_nameAttach | ||||||||||||||||||||
m_pController |