Garry's Mod Wiki

Garry's Mod Wiki

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

Description

Turns the Entity:GetPhysicsObject into a physics shadow. It's 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.

Unlike Entity:PhysicsInitShadow, this function doesn't remove the current physics object.

Arguments

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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...