mirror of
https://github.com/halpz/re3.git
synced 2025-06-29 08:16:24 +00:00
SetPosition, part 1
This commit is contained in:
@ -161,7 +161,7 @@ CTrain::ProcessControl(void)
|
||||
CVector posFront = (1.0f - f)*trackNodes[curTrackNodeFront].p + f*trackNodes[nextTrackNodeFront].p;
|
||||
|
||||
// Now set matrix
|
||||
GetPosition() = (posRear + posFront)/2.0f;
|
||||
SetPosition((posRear + posFront)/2.0f);
|
||||
CVector fwd = posFront - posRear;
|
||||
fwd.Normalise();
|
||||
CVector right = CrossProduct(fwd, CVector(0.0f, 0.0f, 1.0f));
|
||||
|
Reference in New Issue
Block a user