Hello!
I’ve been working on this framework for a while now, the thing I’m mostly stuck is bobble patterns.
I’m not really satisfied with the current bobbing pattern. The spring is fine, I’m looking for a better bobbing ‘pattern’, if that make sense.
What I currently have:
https://gyazo.com/30041b0acd9b5d23e7c6ab9d30db9105
Code:
local velocity = player.Character.HumanoidRootPart.Velocity
local movementSway = Vector3.new(math.cos(currentTime * 10) * 0.6, math.abs(math.sin(currentTime * 10) * 0.6), 0)
self.SPRINGS.SWAY:shove((movementSway / 25) * velocity.Magnitude)
local sway = self.SPRINGS.SWAY:update(deltaTime)
viewmodel.HumanoidRootPart.CFrame = viewmodel.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(sway.x / 7 * multiplyWalkBobble, sway.y / 9 * multiplyWalkBobble, 0))
If anyone can give feedback or ways to improve this, I would very much appreciate it. Thanks!