Skip to content

format

typescript
NavMeshObstacle.carveOnlyStationary

class: NavMeshObstacle

description

Whether to carve the navigation mesh only when the obstacle is in a stationary state.

When isCarveOnStationary is true, the navigation mesh will only be carved again if the distance between the obstacle's position and the last carve position is greater than or equal to moveThreshold, and the obstacle has been stationary for longer than stationaryTime. When isCarveOnStationary is false, the navigation mesh will be carved at the new position if the distance is greater than or equal to moveThreshold.

parameter

param_nametypedescription

reture

typedescription
booleanWhether to carve the navigation mesh only when the obstacle is in a stationary state.

code example