Garry's Mod Wiki


Vector, Vector PhysObj:CalculateForceOffset( Vector force, Vector pos )


Calculates the force and torque on the center of mass for an offset force impulse. The outputs can be directly passed to PhysObj:ApplyForceCenter and PhysObj:ApplyTorqueCenter, respectively.


1 Vector force
The initial force
2 Vector pos
The location of the force in world coordinates


1 Vector
The calculated force on the physics object's center of mass
2 Vector
The calculated torque on the physics object's center of mass

Page Links

Special Pages



Render Time: 48ms

DB GetPage 8
Generate Html 12
SaveChanges (1) 13
Render Body 0
Render Sidebar 12