PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

NoCollisionConstraint

Show deprecated

NoCollisionConstraint

Show deprecated

The NoCollisionConstraint is an instance used to prevent collisions between two specific parts. Connected BasePart|Parts will have no collision reaction between them, but can still have collisions with the rest of the world. Both parts can still receive touch events.

Using a NoCollisionConstraint will allow you to create and share Model|Models with customized collision filtering. While you can still achieve collision filtering with Collision Groups, you are unable to export that information to a model without adding a script to set them when the game runs.

It also provides a quicker way to disable specific problematic collisions. However, if you are trying to spot a large number of parts from colliding with another, it might be better to use Collision Groups.

NoCollisionConstraint Demo

The easiest way to add an NoCollisionConstraint is from the Create Constraint dropdown menu.

Creating a NoCollisionConstraint

Similar to other constraints, this tool will act differently based on how many parts are selected when the tool is activated.

No Parts Selected

If no parts are selected when the NoCollisionConstraint tool is clicked, the next two parts that are clicked on will be connected. If the same part is clicked twice no link will be created.

One Part Selected

If one part is selected when the NoCollisionConstraint tool is clicked, the next part that is clicked on will be connected to the selected part.

Two Parts Selected

If two parts are selected when the NoCollisionConstraint tool is clicked, the two parts will be connected.
You cannot create an NoCollisionConstraint with more than two parts selected.

Properties

bool

Enabled

Determines whether the two constrained parts will collide with each other

BasePart

Part0

The second BasePart|Part that the constraint connects

BasePart

Part1

The first BasePart|Part that the constraint connects

Functions

Events