This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
VR Development
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::ObstacleSphere Class

Header: #include <UniginePathFinding.h>
Inherits from: Obstacle

This class is used to create a sphere-shaped obstacle that is detected and bypassed by other objects during pathfinding.

See Also#

  • The Creating Routes usage example demonstrating how to create routes and recalculate them considering obstacles
  • Navigation sample in C# Component Samples suite
  • A set of UnigineScript API samples located in the <UnigineSDK>/data/samples/paths/ folder

ObstacleSphere Class

Members


static ObstacleSpherePtr create ( float radius ) #

Constructor. Creates a new sphere-shaped obstacle of a specified size.

Arguments

  • float radius - Radius of the sphere.

void setRadius ( float radius ) #

Sets the radius of the obstacle sphere.

Arguments

  • float radius - Radius of the sphere. If a negative value is provided, 0 will be used instead.

float getRadius ( ) #

Returns the current radius of the obstacle sphere.

Return value

Radius of the sphere.

static int type ( ) #

Returns the type of the node.

Return value

Obstacle type identifier.
Last update: 2023-12-19
Build: ()