Function addBoxObstacle
-
addBoxObstacle(
plugin: NavigationPlugin,
position: Vec3,
halfExtents: Vec3,
angle: number,
): ObstacleHandle | nullParameters
- plugin: NavigationPlugin
- position: Vec3
- halfExtents: Vec3
box half-size on each axis
- angle: number
rotation around the Y axis, in radians
Returns ObstacleHandle | null
Add a box obstacle to a tile-cache navmesh. The navmesh must have been built with
maxObstacles > 0. The tile cache is fully updated before returning (matching BJS Addons default behavior).