Breakroom is now Sinewave Campus. Book a meeting

SNavMeshObstacle

العميلالمكونات
في هذا الصنفCarveOnlyStationary
  1. الخصائص
  2. CarveOnlyStationary
  3. Carving
  4. Center
  5. Height
  6. Size
  7. Radius
  8. Shape
  9. MoveThreshold
  10. TimeToStationary
  11. GameObject
الأعضاء 10
خاصيةCarveOnlyStationaryWhen enabled, the obstacle is carved only when it is stationary. (Only can enabled after carve was ticked).
خاصيةCarvingWhen the Carve checkbox gets ticked, the Nav Mesh Obstacle creates a hole in the NavMesh.
خاصيةCenterCenter of the obstacle geometry relative to the transform position.
خاصيةHeightHeight of the capsule. (Property of Capsule shape).
خاصيةSizeSize of the box. (Property of Box shape).
خاصيةRadius–
خاصيةShape–
خاصيةMoveThresholdUse this property to set the threshold distance for updating a moving carved hole. (Only can take effect after carve was ticked)
خاصيةTimeToStationaryThe time to wait until the obstacle is treated as stationary. (Only can take effect after carve was ticked).
خاصيةGameObject–

الخصائص​

CarveOnlyStationary​

bool CarveOnlyStationary {get; set; }

When enabled, the obstacle is carved only when it is stationary. (Only can enabled after carve was ticked).

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.CarveOnlyStationary = true

Carving​

bool Carving {get; set; }

When the Carve checkbox gets ticked, the Nav Mesh Obstacle creates a hole in the NavMesh.

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.Carving = true

Center​

SVector Center {get; set; }

Center of the obstacle geometry relative to the transform position.

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.Center = Vector.New(0,0,0)

Height​

float Height {get; set; }

Height of the capsule. (Property of Capsule shape).

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.Height = 40

Size​

SVector Size {get; set; }

Size of the box. (Property of Box shape).

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.Size = Vector.New(5,10,15)

Radius​

float Radius {get; set; }

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.Radius = 10

Shape​

int Shape {get; set; }

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.Shape = 1

MoveThreshold​

float MoveThreshold {get; set; }

Use this property to set the threshold distance for updating a moving carved hole. (Only can take effect after carve was ticked)

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.MoveThreshold = 5

TimeToStationary​

float TimeToStationary {get; set; }

The time to wait until the obstacle is treated as stationary. (Only can take effect after carve was ticked).

مثال

Lua
Space.Host.ExecutingObject.NavMeshObstacle.TimeToStationary = 5.0

GameObjectللقراءة فقط​

SGameObject GameObject {get; }

مثال

Lua
theGameObject = Space.Host.ExecutingObject.NavMeshObstacle.GameObject