CPhysLength: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
...
Restricts the distance two physics objects may be from each other. (Most often to simulate a rope constraint)


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/physconstraint.cpp /game/server/physconstraint.cpp]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/physconstraint.cpp /game/server/physconstraint.cpp]'''
Line 12: Line 12:
****'''[[CPhysConstraint]]'''
****'''[[CPhysConstraint]]'''
*****'''CPhysLength'''
*****'''CPhysLength'''
== Entity DataMaps ==
{| class="wikitable sortable mw-collapsible mw-collapsed" style="margin: 0 auto; width: 100%; padding: 0;
|+CPhysLength
! 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%;" |'''m_addLength'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_minLength'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_offset'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_totalLength'''
| style="width: 15%;" |
| style="width: 35%;" |
|-
| style="width: 50%;" |'''m_vecAttach'''
| style="width: 15%;" |
| style="width: 35%;" |
|}

Latest revision as of 22:11, 29 July 2022

Overview[edit | edit source]

Restricts the distance two physics objects may be from each other. (Most often to simulate a rope constraint)

Source location : /game/server/physconstraint.cpp

Linked Entity : phys_lengthconstraint

Class Structure[edit | edit source]

Entity DataMaps[edit | edit source]

CPhysLength
Name Type Description
m_addLength
m_minLength
m_offset
m_totalLength
m_vecAttach