mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-18 01:25:24 +00:00
CMorphBall: Take torque by const reference in SpinToSpeed()
Same behavior, minus unnecessary copies and consistency with the rest of the API.
This commit is contained in:
@@ -2176,7 +2176,7 @@ void CMorphBall::ApplyGravity(CStateManager& mgr) {
|
||||
}
|
||||
}
|
||||
|
||||
void CMorphBall::SpinToSpeed(float holdMag, zeus::CVector3f torque, float mag) {
|
||||
void CMorphBall::SpinToSpeed(float holdMag, const zeus::CVector3f& torque, float mag) {
|
||||
x0_player.ApplyTorqueWR(torque * ((holdMag - x0_player.GetAngularVelocityWR().getVector().magnitude()) * mag));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user