Collision
Collision groups for agents. Call Collision.Setup once on the server, put each rig in the rig group with Collision.AddRig, and make a part agents walk through (a door, a curtain, a bead screen) with Collision.LetRigsThrough; it stays solid to players. SafeAreas uses the same rig group.
VluxyAI.Collision.Setup()
VluxyAI.Collision.AddRig(model)
VluxyAI.Collision.LetRigsThrough(workspace.Doors.Front)
Properties
RIG_GROUP
Collision.RIG_GROUP: "VluxyAIRigs"PASSABLE_GROUP
Collision.PASSABLE_GROUP: "VluxyAIPassable"Parts in this group are solid to everything but rigs.
Functions
Setup
Collision.Setup() → ()Registers the rig and passable groups and makes them not collide with each other. Safe to call more than once.
AddRig
Puts every part of the rig, now and as parts are added, in the rig group.
LetRigsThrough
Collision.LetRigsThrough(passable: boolean?--
false puts it back in Default, solid to rigs again (a door that was locked). Default true.
) → ()Makes a part something agents walk through while it stays solid to players.