Garry's Mod Wiki

PhysObj:EnableCollisions

PhysObj:EnableCollisions

PhysObj:EnableCollisions( boolean enable )

Description

Sets whether the physics object should collide with anything or not, including world.

This function currently has major problems with player collisions, and as such should be avoided at all costs.

A better alternative to this function would be using Entity:SetCollisionGroup( COLLISION_GROUP_WORLD ).

Arguments

1 boolean enable
True to enable, false to disable.

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 8