Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
MathUtils::randomDir Function
Syntax
C++
Point3F randomDir(const Point3F & axis, F32 thetaAngleMin, F32 thetaAngleMax, F32 phiAngleMin = 0.0, F32 phiAngleMax = 360.0);

Creates random direction given angle parameters similar to the particle system. 

The angles are relative to the specified axis. Both phi and theta are in degrees. 

 

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!