mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 04:27:42 +00:00
SIMD refactor
This commit is contained in:
@@ -405,7 +405,7 @@ CSteeringBehaviors::ProjectOrbitalPosition(const zeus::CVector3f& pos, const zeu
|
||||
if (vel.canBeNormalized())
|
||||
{
|
||||
zeus::CVector3f pointToPos = pos - orbitPoint;
|
||||
pointToPos.z = 0.f;
|
||||
pointToPos.z() = 0.f;
|
||||
if (pointToPos.canBeNormalized())
|
||||
{
|
||||
zeus::CVector3f useVel = vel;
|
||||
@@ -416,7 +416,7 @@ CSteeringBehaviors::ProjectOrbitalPosition(const zeus::CVector3f& pos, const zeu
|
||||
{
|
||||
usePos += preThinkDt * useVel;
|
||||
zeus::CVector3f usePointToPos = usePos - orbitPoint;
|
||||
usePointToPos.z = 0.f;
|
||||
usePointToPos.z() = 0.f;
|
||||
if (usePointToPos.canBeNormalized())
|
||||
{
|
||||
usePointToPos.normalize();
|
||||
|
||||
Reference in New Issue
Block a user