CPhysForce: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision 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.cpp /game/server/phys_controller.cpp]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/blob/master/tf2_src/game/server/phys_controller.cpp /game/server/phys_controller.cpp]'''
Line 11: Line 11:
== Entity DataMaps ==
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+[https://developer.valvesoftware.com/wiki/phys_thruster phys_thruster]
|+CPhysForce
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 50%; background-color: #303030; color: white" |Name  
! style="width: 15%; background-color: #303030; color: white" |Type
! style="width: 15%; background-color: #303030; color: white" |Type
Line 33: Line 33:
|-
|-
| style="width: 50%;" |'''m_attachedObject'''
| 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%;" |
|}
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+[https://developer.valvesoftware.com/wiki/phys_torque phys_torque]
! 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_axis'''
| style="width: 15%;" |
| style="width: 15%;" |
| style="width: 35%;" |
| 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]

Entity DataMaps[edit | edit source]

CPhysForce
Name Type Description
CPhysForceForceOff
InputActivate
InputDeactivate
InputForceScale
m_attachedObject
m_force
m_forceTime
m_integrator
m_angular
m_angularSave
m_controlType
m_linear
m_linearSave
m_nameAttach
m_pController