Skip to content

format

typescript
NavMeshObstacle.carvingTimeToStationary

class: NavMeshObstacle

description

The minimum stationary time for triggering obstacle carving at a new position.

When isCarveOnStationary is true, obstacle carving will only occur again on the navigation mesh if the distance between the obstacle's position and the last carving position is greater than or equal to carvingMoveThreshold and the obstacle has been stationary at the new position for a duration longer than carvingTimeToStationary.

parameter

param_nametypedescription

reture

typedescription
numberThe minimum stationary time for triggering obstacle carving at a new position.

code example