mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Fix several errors and warnings from GCC compilation
This commit is contained in:
@ -58,7 +58,7 @@ static const float DEFAULT_INVERSE_MASS = 1.f;
|
||||
|
||||
static plRandom sRandom;
|
||||
|
||||
const void plParticleGenerator::ComputeDirection(float pitch, float yaw, hsVector3 &direction)
|
||||
void plParticleGenerator::ComputeDirection(float pitch, float yaw, hsVector3 &direction)
|
||||
{
|
||||
float cosPitch, sinPitch;
|
||||
float cosYaw, sinYaw;
|
||||
@ -70,7 +70,7 @@ const void plParticleGenerator::ComputeDirection(float pitch, float yaw, hsVecto
|
||||
|
||||
// Inverse function of ComputeDirection. Give it a normalized vector, and it will tell you a
|
||||
// pitch and yaw (angles for the unit Z vector) to get there.
|
||||
const void plParticleGenerator::ComputePitchYaw(float &pitch, float &yaw, const hsVector3 &dir)
|
||||
void plParticleGenerator::ComputePitchYaw(float &pitch, float &yaw, const hsVector3 &dir)
|
||||
{
|
||||
const float PI = 3.14159f;
|
||||
pitch = asin(dir.fY);
|
||||
|
@ -63,8 +63,8 @@ public:
|
||||
CLASSNAME_REGISTER( plParticleGenerator );
|
||||
GETINTERFACE_ANY( plParticleGenerator, plCreatable );
|
||||
|
||||
static const void ComputeDirection(float pitch, float yaw, hsVector3 &direction);
|
||||
static const void ComputePitchYaw(float &pitch, float &yaw, const hsVector3 &dir);
|
||||
static void ComputeDirection(float pitch, float yaw, hsVector3 &direction);
|
||||
static void ComputePitchYaw(float &pitch, float &yaw, const hsVector3 &dir);
|
||||
static inline float GetRandomVar() { return 2.0f * (float)hsRand() / RAND_MAX - 1; } // returns a num between +/- 1.0
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user