Options
All
  • Public
  • Public/Protected
  • All
Menu

PathfindingObstacleRuntimeBehavior represents a behavior allowing objects to be considered as a obstacle by objects having Pathfinding Behavior.

Hierarchy

Index

Methods

  • activate(enable: boolean): void
  • activated(): boolean
  • enableSynchronization(enable: boolean): void
  • getCost(): number
  • getName(): string
  • getNameId(): number
  • getNetworkSyncData(): BehaviorNetworkSyncData
  • isImpassable(): boolean
  • isSyncedOverNetwork(): boolean
  • onActivate(): void
  • onCreated(): void
  • onDeActivate(): void
  • onDestroy(): void
  • onObjectHotReloaded(): void
  • setCost(cost: number): void
  • setImpassable(impassable: boolean): void
  • updateFromBehaviorData(oldBehaviorData: any, newBehaviorData: any): boolean
  • updateFromNetworkSyncData(networkSyncData: BehaviorNetworkSyncData): void
  • usesLifecycleFunction(): boolean
  • Should return false if the behavior does not need any lifecycle function to be called. Default, hidden, "capability" behaviors set it to false. This avoids useless calls to empty lifecycle functions, which would waste CPU time (and have a sizeable impact for example when lots of static instances are living in the scene).

    Returns boolean

Constructors

Properties

currentRBushAABB: null | BehaviorRBushAABB<PathfindingObstacleRuntimeBehavior> = null
name: string
type: string

Generated using TypeDoc