You can try using :Lerp, :Interpolate, “for loop” or TweenService.
To help you get off on the right track: TweenService is not suitable for this scenario.
Unfortunately I can’t write you a detailed answer right now, but in short you will need to update the Camera’s properties every render frame to react to user input (e.g. mouse movement) and to achieve the rotation/angular clamping effect. To run your code every render frame, you should use RunService.BindToRenderStep.
Thank you, will update you guys with progress and questions.
I have a website I always turn to for this kind of effect. Specifically, 7. Weighted Average
.
i still have no clue how to do this lol
i would also like some more information on how to use this module for camera manipulation
ive tried using tweenservice, interpolate and :lerp but all give jittery results. So now im looking towards smoothdamp, problem is its pretty tricky to disect.
Any help appreciated
I got it to work, but not using the module.
What i did is, to get smootened moving, you need to DAMP THE USER INPUT.
I took the default roblox camera module, and went into the code where user input, eg x,y movement is stored, and just dampened that using a simple spring module
could you explain further? What i have is a renderstepped continuously lerping the camera to an offset of the chaaracters humanoidrootpart, lerp is pretty good however there is still some jitter here and there. looka t the video for more details.
How could you activate the code into your game?
I would also like to know how you did this, or like a tutorial
Still need an update on what you mean by this.
Could you please show us how you did this??
Please show us how this was achieved! This would be a great resource for developers as there are no openly available ways to do so…
I did it by forking the roblox camera module, and using a spring to damp the x and y values from the user inputs.
i smooth the inputs inside the ClassicCamera module,
this is the part of the code that updates the spring and returns the new rotateInput
heres the forked code, note that if roblox updates their camera code, the fork wont update, you need to manually update the code.
the code goes into starterplayerscripts
PlayerModule.rbxm (125.4 KB)
Cool, thanks! Once Roblox updates the camera though, I just take the new code out of the player and paste in the camera damping into ClassicCamera, right?
yeah just take the camera module from the player and add the damping code into the classic camera, though it depends on how much stuff have changed in the code.
How so? It seems good to me, kinda like doors or scp-3008. What would be ideal for gameplay?
Is it possible so its smooth when moving too? It’d be pretty cool with smooth rotation.