Collision
Client
Server
Deprecated
The collision functions in this class are old and may not correctly work.
Instead use Cast:Ray()
and Collide()
Constructors
Collision()
Collision()
Methods
table Raycast()
Use rayPos, rayDir, returns table of Hit values or empty table for no hit. Returns Hit.
table Raycast(Vec3, Vec3)
table GetOverlap()
Checks collision between shape and geometry passed by filter. Returns Overlap.
table GetOverlap(Shape)
Properties
Filter filter
integer maxHitCount
Doesn't influence result, just limits returned hits table size