CPhysMotor: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Overview == ... '''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]'''...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
Tries to spin a physics object at a certain speed. | |||
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]''' | '''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]''' | ||
Line 11: | Line 11: | ||
***'''[[CLogicalEntity]]''' | ***'''[[CLogicalEntity]]''' | ||
****'''CPhysMotor''' | ****'''CPhysMotor''' | ||
== Entity DataMaps == | |||
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0; | |||
|+CPhysMotor | |||
! 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%;" |'''InputSetTargetSpeed''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputTurnOff''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''InputTurnOn''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_additionalAcceleration''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_angularAcceleration''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_attachedObject''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_lastTime''' | |||
| 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_motor | |||
|- | |||
| style="width: 50%;" |'''m_axis''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_inertiaFactor''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_lastAcceleration''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_lastForce''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_lastSpeed''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_maxTorque''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_restistanceDamping''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_speed''' | |||
| 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%;" | | |||
|- | |||
| style="width: 50%;" |'''m_pHinge''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|- | |||
| style="width: 50%;" |'''m_spinUp''' | |||
| style="width: 15%;" | | |||
| style="width: 35%;" | | |||
|} |
Latest revision as of 20:30, 10 July 2022
Overview[edit | edit source]
Tries to spin a physics object at a certain speed.
Source location : /game/server/phys_controller.cpp
Linked Entity : phys_motor
Class Structure[edit | edit source]
- CBaseEntity
- CServerOnlyEntity
- CLogicalEntity
- CPhysMotor
- CLogicalEntity
- CServerOnlyEntity
Entity DataMaps[edit | edit source]
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
InputSetTargetSpeed | |||||||||||||||||||||||||||||
InputTurnOff | |||||||||||||||||||||||||||||
InputTurnOn | |||||||||||||||||||||||||||||
m_additionalAcceleration | |||||||||||||||||||||||||||||
m_angularAcceleration | |||||||||||||||||||||||||||||
m_attachedObject | |||||||||||||||||||||||||||||
m_lastTime | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
m_nameAttach | |||||||||||||||||||||||||||||
m_pController | |||||||||||||||||||||||||||||
m_pHinge | |||||||||||||||||||||||||||||
m_spinUp |