mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-04 05:19:59 +00:00
SetPosition, part 1
This commit is contained in:
parent
a1c1be7af9
commit
d23b2c423e
25 changed files with 62 additions and 54 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue