mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Eliminate hsScalar and hsFixed
Modern CPUs support floats just fine... hsFixed was crazy.
This commit is contained in:
@ -67,11 +67,11 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual void GetCurrent(plPhysicalControllerCore *physical, hsVector3 &linearResult, hsScalar &angularResult, hsScalar elapsed);
|
||||
virtual void GetCurrent(plPhysicalControllerCore *physical, hsVector3 &linearResult, float &angularResult, float elapsed);
|
||||
|
||||
hsScalar fDownBuoyancy;
|
||||
hsScalar fUpBuoyancy;
|
||||
hsScalar fMaxUpwardVel;
|
||||
float fDownBuoyancy;
|
||||
float fUpBuoyancy;
|
||||
float fMaxUpwardVel;
|
||||
};
|
||||
|
||||
class plSwimCircularCurrentRegion : public plSwimRegionInterface
|
||||
@ -86,14 +86,14 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual void GetCurrent(plPhysicalControllerCore *physical, hsVector3 &linearResult, hsScalar &angularResult, hsScalar elapsed);
|
||||
virtual void GetCurrent(plPhysicalControllerCore *physical, hsVector3 &linearResult, float &angularResult, float elapsed);
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
|
||||
hsScalar fRotation;
|
||||
hsScalar fPullNearDistSq;
|
||||
hsScalar fPullNearVel;
|
||||
hsScalar fPullFarDistSq;
|
||||
hsScalar fPullFarVel;
|
||||
float fRotation;
|
||||
float fPullNearDistSq;
|
||||
float fPullNearVel;
|
||||
float fPullFarDistSq;
|
||||
float fPullFarVel;
|
||||
|
||||
protected:
|
||||
plSceneObject *fCurrentSO;
|
||||
@ -111,13 +111,13 @@ public:
|
||||
virtual void Read(hsStream* stream, hsResMgr* mgr);
|
||||
virtual void Write(hsStream* stream, hsResMgr* mgr);
|
||||
|
||||
virtual void GetCurrent(plPhysicalControllerCore *physical, hsVector3 &linearResult, hsScalar &angularResult, hsScalar elapsed);
|
||||
virtual void GetCurrent(plPhysicalControllerCore *physical, hsVector3 &linearResult, float &angularResult, float elapsed);
|
||||
virtual hsBool MsgReceive(plMessage* msg);
|
||||
|
||||
hsScalar fNearDist;
|
||||
hsScalar fNearVel;
|
||||
hsScalar fFarDist;
|
||||
hsScalar fFarVel;
|
||||
float fNearDist;
|
||||
float fNearVel;
|
||||
float fFarDist;
|
||||
float fFarVel;
|
||||
|
||||
protected:
|
||||
plSceneObject *fCurrentSO;
|
||||
|
Reference in New Issue
Block a user