PathfindingModifier
Modifiers used to represent space that has a higher or lower cost to be traversed when creating paths using the PathfindingService.
Memory category | Instances |
---|
Member index 2
Removed member index 1
History | Member | |
---|---|---|
509 | ModifierId: string |
Description
Pathfinding modifiers can be used to represent space that has a higher or lower cost to be traversed. When added as a child to a Part, it takes that Part's volume to annotate areas of the navmesh that are inside and on top of it.
You can include pathfinding modifiers in the PathfindingService:CreatePath() parameters and compute smarter paths across various materials or around defined regions.
Note that when adding a PathfindingModifier to a part, either:
- The part is collidable and we are interested in modifying pathfinding costs of paths on top of this part, which we call area.
- The part is non-collidable (and usually invisible in game) and we are interested in modifying pathfinding costs of paths inside the part, which we call volume.
History 6
- 553 Change Default of PassThrough from to false
- 509 Remove ModifierId
- 509 Add Label
- 493 Add PassThrough
- 489 Add ModifierId
- 489 Add PathfindingModifier
Members 2
Label
Type | Default | |
---|---|---|
string |
The name of the navigation area inside or on top of the Part volume.
For a more detailed overview of PathfindingService and PathfindingModifier, see Character Pathfinding.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | true |
PassThrough
Type | Default | |
---|---|---|
bool | false |
Determines if the parts enclosed by the modifier are traversable, even if they would normally be collided with. See Character Pathfinding for details.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | true |
History 2
- 553 Change Default of PassThrough from to false
- 493 Add PassThrough
Removed members 1
ModifierId
Type | Default | |
---|---|---|
string |
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | true |
History 2
- 509 Remove ModifierId
- 489 Add ModifierId