If you go to that place, select a spawn point, and equip the weapon, you will see that the FPS view is really jittery while rotating the camera. Zoom all the way into first person to enable the FPS weapon view and pan the camera around.
It wasn’t always like this. It only started doing this since the most recent ROBLOX update yesterday. Before the update, it was perfectly smooth; the arms were fixated with the camera perfectly and never went off-center. To make sure this was not just my code, I went to loleris’s Mad Paintball. The same effect appears to be happening there as well.
In the update, was there a change in how the character rotated in respect to the camera, some change to the RunService::RenderStepped event, or a throttle to the maximum framerate in a local script? If so, is there a good way to remedy the issue? Or will this update be rolled back?
Guess the jitter is due to the new Lua camera controls, but hopefully the above code should fix it. [/quote]
It’s definitely better. I used the 0 enumerator (First) instead, and it is much better than it was before, but it still acts extremely jittery. Prior to this update, it was perfectly smooth.
ROBLOX changed the way that the character moves with the camera. What you want to do is completely remove dependency on using the head position. To calculate the pitch of the gun, take the arc sine of the y component of the camera’s look vector. Remember that the principle values for arc sine are [-pi/2, pi/2], so this will return the correct pitch since ROBLOX constricts the camera to these rotations.
[quote] ROBLOX changed the way that the character moves with the camera. What you want to do is completely remove dependency on using the head position. To calculate the pitch of the gun, take the arc sine of the y component of the camera’s look vector. Remember that the principle values for arc sine are [-pi/2, pi/2], so this will return the correct pitch since ROBLOX constricts the camera to these rotations.
[quote] ROBLOX changed the way that the character moves with the camera. What you want to do is completely remove dependency on using the head position. To calculate the pitch of the gun, take the arc sine of the y component of the camera’s look vector. Remember that the principle values for arc sine are [-pi/2, pi/2], so this will return the correct pitch since ROBLOX constricts the camera to these rotations.
I think I ran into a similar issue to this?
The ultimate solution is to use BindToRenderStep, or to move all RenderStepped connections into a single function for the weapon so theres no desync between them.