CPhysMagnet

From SigMod
Revision as of 20:13, 10 July 2022 by Mince (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Acts like a magnet, attaching metallic objects when they collide.

Source location : /game/server/physobj.h

Linked Entity : phys_magnet

Class Structure

Entity DataMaps

CPhysMagnet
Name Type Description
InputToggle
InputTurnOff
InputTurnOn
m_MagnettedEntities
m_OnMagnetAttach
m_OnMagnetDetach
m_bActive
m_bHasHitSomething
m_flNextSuckTime
m_flRadius
m_flTotalMass
m_forceLimit
m_iMaxObjectsAttached
m_iszOverrideScript
m_massScale
m_pConstraintGroup
m_torqueLimit