LogoLogo
Scripting DocsSupport
Scripting
Scripting
  • Sinespace Scripting Documentation
  • Client Scripting
    • Viewer
      • SDialogues
      • SInput
      • SShared
      • SUI
    • Network
      • SChat
      • SNetwork
      • SPhotos
      • SVideos
      • SWebService
    • Player
      • SEconomy
      • SGroup
      • SInventory
      • SProfile
      • SQuests
    • Region
      • SCameraManager
      • SGrid
      • SHost
      • SPersistence
      • SPhysics
      • SPostFX
      • SScene
      • SScript
      • SRenderSettings
    • Components
      • SAnimation
      • SAnimator
      • SAudioReactiveAnimation
      • SAudioReactiveBase
      • SAudioReactiveLight
      • SAudioReactiveMaterial
      • SAudioReactiveParticleSystem
      • SAudioReactiveTransform
      • SAudioSource
      • SBoxCollider
      • SBrowserSurface
      • SCamera
      • SCanvasGroup
      • SCapsuleCollider
      • SCharacterController
      • SClickable
      • SCloth
      • SCollider
      • SContentSizeFitter
      • SEmbeddedVideo
      • SEventCalendar
      • SFurniture
      • SGraphicRaycaster
      • SHingeJoint
      • SLight
      • SLineRenderer
      • SMeshRenderer
      • SModularVehicle
      • SNavMeshAgent
      • SNavMeshObstacle
      • SNetworking
      • SParticleSystem
      • SPlayableDirector
      • SPostProcessVolume
      • SRectTransform
      • SReflectionProbe
      • SRenderer
      • SRigidbody
      • SRoomFloor
      • SSceneBackgroundMusic
      • SScriptingData
      • SScriptingEvents
      • SScriptingResources
      • SScriptingRuntime
      • SSeat
      • SSkinnedMeshRenderer
      • SSphereCollider
      • SStateMachine
      • STerrain
      • STrailRenderer
      • SUIButton
      • SUICanvas
      • SUIDropdown
      • SUIImage
      • SUIInputField
      • SUILayout
      • SUIRawImage
      • SUIScrollbar
      • SUISlider
      • SUIText
      • SUIToggle
      • SUIToolTipHint
      • SVirtualCamera
      • SVoiceZone
    • Types
      • SAnimationState
      • SAnimatorStateInfo
      • SAvatar
      • SAvatarAppearance
      • SChatMessage
      • SColor
      • SCommandBuffer
      • SDateTime
      • SGameObject
      • SGenre
      • SGroupInfo
      • SInventoryItem
      • SJointLimits
      • SJointMotor
      • SJointSpring
      • SLandmark
      • SLayerMask
      • SMaterial
      • SMath
      • SMusicDirectory
      • SMusicStation
      • SMusicStationList
      • SNetworkMessageLua
      • SOutfit
      • SParticle
      • SPhysicsHit
      • SPublicRegion
      • SQuaternion
      • SRay
      • SRect
      • SResource
      • SScore
      • SScoreRank
      • SString
      • SSubRegion
      • STrackInfo
      • STuneIn
      • SUIRaycastResult
      • SUserRegions
      • SVector
      • SUserProfile
      • SSocialMedia
      • SWebResponse
  • Server Scripting
    • Library
      • SMath
    • Network
      • SShared
      • SWebservice
    • Region
      • SAvatar
      • SCell
      • SObject
      • SParcel
      • SParcelManager
      • SRegionScript
      • SScene
    • Storage
      • SDatabase
  • Guides
    • Persistence
    • Server Scripts
  • Sample Projects
    • Smart Lights
    • Trivia Box
  • Changelog
    • API Changelog
  • Support
    • Report An Issue
Powered by GitBook

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.

On this page
  • Index
  • Properties Index
  • Properties
  • CarveOnlyStationary
  • Carving
  • Center
  • Height
  • Size
  • Radius
  • Shape
  • MoveThreshold
  • TimeToStationary
  • GameObject

Was this helpful?

Export as PDF
  1. Client Scripting
  2. Components

SNavMeshObstacle

Index

Properties Index

Property Name

Properties

CarveOnlyStationary

bool CarveOnlyStationary get set

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

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.

Space.Host.ExecutingObject.NavMeshObstacle.Carving = true

Center

SVector Center get set

Center of the obstacle geometry relative to the transform position.

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

Height

float Height get set

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

Space.Host.ExecutingObject.NavMeshObstacle.Height = 40

Size

SVector Size get set

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

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

Radius

float Radius get set

Property Description

Space.Host.ExecutingObject.NavMeshObstacle.Radius = 10

Shape

int Shape get set

Property Description

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)

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).

Space.Host.ExecutingObject.NavMeshObstacle.TimeToStationary = 5.0

GameObject

Property Description

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

Last updated 2 years ago

Was this helpful?

bool get set

bool get set

SVector get set

float get set

SVector get set

float get set

int get set

float get set

float get set

SGameObject get

GameObject get

SGameObject
CarveOnlyStationary
Carving
Center
Height
Size
Radius
Shape
MoveThreshold
TimeToStationary
GameObject