Garry's Mod Wiki

Revision Difference

PhysObj:SetPos#546362

<function name="SetPos" parent="PhysObj" type="classfunc"> <description>Sets the position of the physobject.</description> <realm>Shared</realm> <args> <arg name="position" type="Vector">The new position of the physobject.</arg>⤶ <arg name="position" type="Vector">The new position of the physobject in world coordinates. (`source units`).⤶ <warning>The new position will not be applied on the parent entity while the physics object is asleep (<page>PhysObj:Sleep</page>)</warning> ⤶ </arg>⤶ <arg name="teleport" type="boolean" default="false"></arg> </args> </function>