applyParameters variant for ActorMovementController

This commit is contained in:
DBotThePony 2024-05-22 19:02:47 +07:00
parent 8eb1db919f
commit 06a202bf17
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -192,7 +192,12 @@ class ActorMovementController() : MovementController() {
fun resetBaseParameters(base: ActorMovementParameters) {
actorMovementParameters = Globals.actorMovementParameters.merge(base)
movementParameters = calculateMovementParameters(actorMovementParameters)
updateParameters(calculateMovementParameters(actorMovementParameters))
}
fun applyParameters(parameters: ActorMovementParameters) {
actorMovementParameters = actorMovementParameters.merge(parameters)
updateParameters(calculateMovementParameters(actorMovementParameters))
}
fun clearControls() {