Garry's Mod Wiki

PhysicsObjectSave

Description

Structure used in storing/restoring physics object attributes. duplicator.GenericDuplicatorFunction and duplicator.DoGenericPhysics use a table of PhysicsObjectSaves with the struct's index in the table being the physics object ID.

Pos and Angle are set by the following:

Pos, Angle = WorldToLocal(phys:GetPos(), phys:GetAngle(), Vector( 0, 0, 0 ), Angle( 0, 0, 0 ))

Parameters

Pos [Vector]

The entity's world position made local with WorldToLocal

Angle [Angle]

The entity's world angles made local with WorldToLocal

Frozen [boolean]

Whether the entity is moveable. Equal to (not PhysObj:IsMoveable)

NoGrav [boolean]

Whether the entity's gravity is affected by gravity or not. PhysObj:IsGravityEnabled

Sleep [boolean]

Whether the entity is dormant or not. PhysObj:IsAsleep

Page Links


Special Pages


Wikis

?

Render Time: 41ms

DB GetPage 5
Generate Html 6
SaveChanges (1) 16
Render Body 0
Render Sidebar 12