View Single Post
  #3  
Old 04-11-2015, 01:12 PM
MissingAFew MissingAFew is offline
Member
 
Join Date: Apr 2015
Posts: 15
Quote:
Originally Posted by Jeff View Post
You can apply a postTrans or preTrans operation on the link.
Thanks, I already figured out what I needed to. However I am having a few issues implementing a FPS style control scheme where the change in mouse position rotates the player. Here's pastebin of relevant code:

http://pastebin.com/GDFTYf2d

This code is contained within my function UpdateView and gets updated with the following:

vizact.ontimer(0,UpdateView)

Now this code works, however, it is very jittery. It is not smooth at all. And if I only move the mouse a little bit, it wont cause the player to rotate. The way Im doing this feels very "hacky", but I'm not sure how else to do it. I haven't any example code for this kind of control scheme. Is there a better way to accomplish this? To me it seems like the UpdateView function is not being called every frame which is the cause of the jitteryness, but I am not entirely sure.
Reply With Quote