This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

PhysicalWind Class

Interface for physical wind handling.

To use this class, include the UniginePhysicalWind.h file.

PhysicalWind Class

Members


PhysicalWind (const Math::vec3 & size)

Constructor. Creates a physical wind node of the specified size.

Arguments

  • const Math::vec3 & size - Wind box size in units.

void setThreshold (const Math::vec3 & threshold)

Sets the threshold distance values along the coordinates axes relative to the wind node size (that is, inside of it). It determines the area of gradual change from zero to full wind velocity.

Arguments

  • const Math::vec3 & threshold - distance in units.

void setVelocity (const Math::vec3 & velocity)

Sets velocity of the physical wind flow.

Arguments

  • const Math::vec3 & velocity - Velocity in units per second.

float getAngularDamping ()

Returns the current angular velocity of the objects decreases when they get inside the wind node.

Return value

Angular damping value.

void setSize (const Math::vec3 & size)

Sets the size of the physical wind node.

Arguments

  • const Math::vec3 & size - Wind box size in units.

void setAngularDamping (float damping)

Sets a value indicating how much the angular velocity of the objects decreases when they get inside the wind node.

Arguments

  • float damping - damping value. If a negative value is provided, 0 will be used instead.

void setLinearDamping (float damping)

Sets a value indicating how much the linear velocity of the objects decreases when they get inside the wind node.

Arguments

  • float damping - Linear damping value. If a negative value is provided, 0 will be used instead.

Math::vec3 getThreshold ()

Returns the current threshold distance values along the coordinates axes relative to the wind node size (that is, inside of it). It determines the area of gradual change from zero to full wind velocity.

Return value

Threshold distance in units.

float getLinearDamping ()

Returns the current value indicating how much the linear velocity of the objects decreases when they get inside the wind node.

Return value

Linear damping value.

Math::vec3 getSize ()

Returns the current size of the physical wind node.

Return value

Wind box size in units.

Math::vec3 getVelocity ()

Returns the current velocity of the physical wind flow.

Return value

Velocity in units per second.
Last update: 2017-07-03
Build: ()