Garry's Mod Wiki


boolean Entity:PhysicsInitShadow( boolean allowPhysicsMovement = true, boolean allowPhysicsRotation = true )


Initializes the entity's physics object as a physics shadow. Removes the previous physics object if successful. This is used internally for the Player's and NPC's physics object, and certain HL2 entities such as the crane.

A physics shadow can be used to have static entities that never move by setting both arguments to false.

Clientside physics objects are broken and do not move properly in some cases. Physics objects should only created on the server or you will experience incorrect physgun beam position, prediction issues, and other unexpected behavior.


1 boolean allowPhysicsMovement = true
Whether to allow the physics shadow to move under stress.
2 boolean allowPhysicsRotation = true
Whether to allow the physics shadow to rotate under stress.


1 boolean
Return true on success, nil otherwise.

Page Links

Special Pages



Render Time: 88ms

DB GetPage 32
Generate Html 10
SaveChanges (1) 31
Render Body 0
Render Sidebar 12