mirror of https://github.com/AxioDL/metaforce.git
CTryclops: Fix incorrect transform being passed to Teleport() in LaunchPlayer()
GM8E v0 makes use of tmpXf here with Teleport(), not the passed in transform.
This commit is contained in:
parent
40f184bfac
commit
cf7d5be6c1
|
@ -496,7 +496,7 @@ void CTryclops::LaunchPlayer(CStateManager& mgr, const zeus::CTransform& xf, flo
|
|||
player.Stop();
|
||||
zeus::CTransform tmpXf = (xf * x64c_);
|
||||
tmpXf.origin += zeus::CVector3f(0.f, 0.f, -0.5f);
|
||||
player.Teleport(xf, mgr, false);
|
||||
player.Teleport(tmpXf, mgr, false);
|
||||
player.ApplyImpulseWR(f1 * (player.GetMass() * xf.basis[1].normalized()), zeus::CAxisAngle());
|
||||
player.SetMoveState(CPlayer::EPlayerMovementState::ApplyJump, mgr);
|
||||
player.AddMaterial(EMaterialTypes::Solid, mgr);
|
||||
|
|
Loading…
Reference in New Issue