Garry's Mod Wiki


Entity:SetRenderClipPlane( Vector planeNormal, number planePosition )


Used to specify a plane, past which an object will be visually clipped.


1 Vector planeNormal
The normal of the plane. Anything behind the normal will be clipped.
2 number planePosition
The position of the plane.


Creates a blue barrel at Vector(0, 0, 0), freezes it, and will visually clip the barrel's lower half.

local ent = ents.CreateClientProp( "prop_physics" ) ent:SetModel( "models/props_borealis/bluebarrel001.mdl" ) ent:SetPos( Vector(0, 0, 0) ) ent:Spawn() ent:GetPhysicsObject():EnableMotion(false) local normal = ent:GetUp() local position = normal:Dot( ent:GetPos() ) ent:SetRenderClipPlaneEnabled( true ) ent:SetRenderClipPlane( normal, position )

Page Links

Special Pages



Render Time: 81ms

DB GetPage 50
Generate Html 8
SaveChanges (1) 12
Render Body 0
Render Sidebar 9