Reset camera velocity when starting animation

This commit is contained in:
PeaAshMeter 2025-11-10 05:09:56 +03:00
parent c566d1669e
commit 123885b2b3

View File

@ -104,6 +104,7 @@ function camera:animateTo(position, animationNode)
self.animationNode = animationNode self.animationNode = animationNode
self.animationEndPosition = position self.animationEndPosition = position
self.animationBeginPosition = self.position self.animationBeginPosition = self.position
self.velocity = Vec3 {}
end end
--- @return Camera --- @return Camera