RSX Code Reference
    Preparing search index...
    • rsx
    • NavigationSettings

    Class NavigationSettings

    The NavigationSettings struct contains values used to specify how Navigation data is created.

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns NavigationSettings

    • get agentHeight(): number

      The height of the agent in world units (m). The agent will not be able to walk through areas with a lower ceiling.

      The average male height is 1.75m.

      Returns number

    • set agentHeight(value: number): void

      Parameters

      • value: number

      Returns void

    • get agentRadius(): number

      The radius of the agent in world units (m). The agent will not be able to walk through passages that are narrower than the the diameter of the agent.

      The average male shoulder-to-shoulder distance is about 0.5m which corresponds to a raidus of 0.25u.

      Returns number

    • set agentRadius(value: number): void

      Parameters

      • value: number

      Returns void

    • get isAutomaticVoxelSizeEnabled(): boolean

      Returns boolean

    • set isAutomaticVoxelSizeEnabled(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get maximumClimbHeight(): number

      The maximum ledge height in world units (m) that is considered to still be traversable by the agent.

      The average trained male is about to jump between 0.6m to 0.7m.

      Returns number

    • set maximumClimbHeight(value: number): void

      Parameters

      • value: number

      Returns void

    • get maximumSlopeAngle(): rsx.Degree

      The maximum slope that is considered walkable by the agent.

      A average trained male is able to go up a slope of about 45 to 50 degrees.

      Returns rsx.Degree

    • set maximumSlopeAngle(value: rsx.Degree): void

      Parameters

      Returns void

    • get mergeRegionSize(): number

      Any regions with a span count smaller than this value will, if possible be merged with larger regions.

      Returns number

    • set mergeRegionSize(value: number): void

      Parameters

      • value: number

      Returns void

    • get minimumRegionSize(): number

      The minimum number of cells allowed to form isolated island areas.

      Returns number

    • set minimumRegionSize(value: number): void

      Parameters

      • value: number

      Returns void

    • get tileSize(): number

      The voxel size of a navigation tile. Smaller tiles may process faster, but can cause sub-optimal paths.

      Returns number

    • set tileSize(value: number): void

      Parameters

      • value: number

      Returns void

    • get voxelHeight(): number

      The height of a voxel in world-space when not using automatic voxel size computation.

      Returns number

    • set voxelHeight(value: number): void

      Parameters

      • value: number

      Returns void

    • get voxelWidth(): number

      The width of a voxel in world-space when not using automatic voxel size computation.

      Returns number

    • set voxelWidth(value: number): void

      Parameters

      • value: number

      Returns void

    • Allows modifying this object multiple times in a row in a scope, without marking the object dirty immediately. Dirty flags are accumulated and the object is marked dirty at the end.

      Parameters

      • action: () => void

        The scope where the object is modified.

      Returns void

    onDirty: Event<[dirtyFlags: EnumValue<ManagedSettingsDirtyFlag, number>]>

    Event that is triggered when a member changes.