Garry's Mod Wiki

PhysObj:SetPos

  PhysObj:SetPos( Vector position, boolean teleport = false )

Description

Sets the position of the physobject.

Arguments

1 Vector position
The new position of the physobject in world coordinates. (source units).
The new position will not be applied on the parent entity while the physics object is asleep (PhysObj:Sleep)
2 boolean teleport = false
If true, temporarily disables collisions of the physics objects just before moving it, then enables collisions back again.