mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 04:39:45 +00:00
Eliminate hsScalar and hsFixed
Modern CPUs support floats just fine... hsFixed was crazy.
This commit is contained in:
@ -138,10 +138,10 @@ hsBool plConvexVolume::IsInside(const hsPoint3 &pos) const
|
||||
|
||||
hsBool plConvexVolume::ResolvePoint(hsPoint3 &pos) const
|
||||
{
|
||||
hsScalar minDist = 1.e33f;
|
||||
float minDist = 1.e33f;
|
||||
int32_t minIndex = -1;
|
||||
|
||||
hsScalar currDist;
|
||||
float currDist;
|
||||
int i;
|
||||
for (i = 0; i < fNumPlanes; i++)
|
||||
{
|
||||
@ -159,12 +159,12 @@ hsBool plConvexVolume::ResolvePoint(hsPoint3 &pos) const
|
||||
return true;
|
||||
}
|
||||
|
||||
hsBool plConvexVolume::BouncePoint(hsPoint3 &pos, hsVector3 &velocity, hsScalar bounce, hsScalar friction) const
|
||||
hsBool plConvexVolume::BouncePoint(hsPoint3 &pos, hsVector3 &velocity, float bounce, float friction) const
|
||||
{
|
||||
hsScalar minDist = 1.e33f;
|
||||
float minDist = 1.e33f;
|
||||
int32_t minIndex = -1;
|
||||
|
||||
hsScalar currDist;
|
||||
float currDist;
|
||||
int i;
|
||||
for (i = 0; i < fNumPlanes; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user