format
typescript
NavMeshObstacle.carveOnlyStationaryclass: 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_name | type | description |
|---|
reture
| type | description |
|---|---|
boolean | Whether to carve the navigation mesh only when the obstacle is in a stationary state. |
