How to Rotate an Actor When it is Moving?
Slamuel
Member Posts: 10
Hello,
I am new to this forum, but I have been looking at a lot of the topics and videos to help me. So, anyway I am trying to create an actor that can rotate while moving.
I actually have been successful in this, but it did not rotate properly for me because when the actor was moving using the arrow keys he was bobbing up and down instead of just going in a straight line. I have collide set to a floor and that might be the cause of the bobbing, but I'm not sure.
So if anyone can get back to me and mention a few methods of rotating while moving that would be great!
Thanks in advance, Slamuel
P.S. all of you guys have been a great help from what I have experienced on this forum!
I am new to this forum, but I have been looking at a lot of the topics and videos to help me. So, anyway I am trying to create an actor that can rotate while moving.
I actually have been successful in this, but it did not rotate properly for me because when the actor was moving using the arrow keys he was bobbing up and down instead of just going in a straight line. I have collide set to a floor and that might be the cause of the bobbing, but I'm not sure.
So if anyone can get back to me and mention a few methods of rotating while moving that would be great!
Thanks in advance, Slamuel
P.S. all of you guys have been a great help from what I have experienced on this forum!
Comments
when attribute self.linearvelocity.x is > 1
--Rotate Clockwise/counter clockwise and set a speed to your liking
Also you should look at setting your restitution low to like 0.2 in both floor and round actor to avoid the bouncing
Hope that helps
__________________________________________________________________
AppSolute Entertainment on Facebook