2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 11:07:44 +00:00

CPuddleToadGamma and animation system fixes

This commit is contained in:
Jack Andersen
2019-06-20 20:02:56 -10:00
parent 9ccc4227cb
commit 77af3f0ebd
35 changed files with 309 additions and 203 deletions

View File

@@ -87,12 +87,12 @@ void CBomb::Think(float dt, urde::CStateManager& mgr) {
if (x190_24_isNotDetonated) {
if (x164_.magSquared() > 0.f)
x158_ += dt * x164_;
if (x164_acceleration.magSquared() > 0.f)
x158_velocity += dt * x164_acceleration;
if (x158_.magSquared() > 0.f) {
if (x158_velocity.magSquared() > 0.f) {
x170_prevLocation = GetTranslation();
CActor::SetTranslation((dt * x158_) + GetTranslation());
CActor::SetTranslation((dt * x158_velocity) + GetTranslation());
zeus::CVector3f diffVec = (GetTranslation() - x170_prevLocation);
float diffMag = diffVec.magnitude();