I am having trouble getting many different animations and camera settings to have the same speed no matter what the FPS of the game is.
Here is an example of what I am doing at the moment:
UpdateAppTime()
--Rotate object
if KeyDown(KEY_E)==1 then
object:Turn(Vec3(0,obj.Rotation.y + (0.2 / AppSpeed()),0))
elseif KeyDown(KEY_D)==1 then
object:Turn(Vec3(0,obj.Rotation.y - (0.2 / AppSpeed()) ,0))
end
fw:Update()
fw:Render()
Updated values for rotation etc always use a 'divide by AppSpeed() ' to have the same amount rotation no matter what the FPS. What do I need to do here to get the same rotation no matter what the FPS is?