mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-12 11:10:34 +00:00
SetPosition, part 2
This commit is contained in:
parent
d23b2c423e
commit
52390062b3
14 changed files with 49 additions and 49 deletions
|
@ -513,7 +513,7 @@ CBoat::ProcessControl(void)
|
|||
// is this some inlined CPlaceable method?
|
||||
CVector pos = GetPosition();
|
||||
GetMatrix().RotateZ(m_fOrientation - GetForward().Heading());
|
||||
GetPosition() = pos;
|
||||
GetMatrix().GetPosition() = pos;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -673,7 +673,7 @@ CBoat::BlowUpCar(CEntity *culprit)
|
|||
dist.Normalise();
|
||||
if(GetUp().z > 0.0f)
|
||||
dist += GetUp();
|
||||
obj->GetPosition() += GetUp();
|
||||
obj->GetMatrix().GetPosition() += GetUp();
|
||||
|
||||
CWorld::Add(obj);
|
||||
|
||||
|
@ -764,7 +764,7 @@ void
|
|||
CBoat::Teleport(CVector v)
|
||||
{
|
||||
CWorld::Remove(this);
|
||||
GetPosition() = v;
|
||||
SetPosition(v);
|
||||
SetOrientation(0.0f, 0.0f, 0.0f);
|
||||
SetMoveSpeed(0.0f, 0.0f, 0.0f);
|
||||
SetTurnSpeed(0.0f, 0.0f, 0.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue