Announcement

Collapse
No announcement yet.

Using finterpto to smooth rotation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    you've probably figured it out already, but just click on the little "Add Pin" on the node

    Leave a comment:


  • replied
    I know this post is old, but how do I mutiply axis value by 15 and delta seconds? When I place float * float, it only has 2 inputs...

    Leave a comment:


  • replied
    For smooth and consistent rotation you need to add two things. One is delta time, it's necessary so that rotation speed doesn't change if FPS changes. For smoothing out "arrival" and "departure" of rotation you could use InterpFloat. So the final setup would be like this:
    Click image for larger version

Name:	Smooth_camera_rotation.JPG
Views:	1
Size:	106.3 KB
ID:	1105885

    Interp nodes need to be called on every tick to interpolate value, this is why interpolation is called separately on Tick. You could add it into the top graph and it will work, but only because you get input from Axis value, which is called all the time, example that I show is more generic and will work with simple button presses too.
    Last edited by BoredEngineer; 05-03-2016, 01:25 PM.

    Leave a comment:


  • replied
    Alright I will give that a try, will that also smooth out the rotation itself? Or just help in cases where I'm rotating more than 180 degrees?

    Leave a comment:


  • replied
    Originally posted by yoursham View Post
    Currently working with the flight template. Added this section to allow the camera to rotate left and right slightly when a yaw input is provided (similar to a neck rotating). Currently the camera jumps from the 0 value to the -15 or 15. Could anyone explain how I might smooth this out?

    I can't seem to figure out how to implement the finterpto node into this script and properly smooth that camera rotation. Could it be that my exec connection for the camera's relative rotation is coming from that input yaw axis? Does this need to start at event begin play?

    [ATTACH=CONFIG]91737[/ATTACH]

    Thanks!
    Don't use SetRelativeRotation, change logic to use AddRelativeRotation(), it will handle gracefully cases when you go over -180 and 180 degrees.

    Leave a comment:


  • started a topic Using finterpto to smooth rotation

    Using finterpto to smooth rotation

    Currently working with the flight template. Added this section to allow the camera to rotate left and right slightly when a yaw input is provided (similar to a neck rotating). Currently the camera jumps from the 0 value to the -15 or 15. Could anyone explain how I might smooth this out?

    I can't seem to figure out how to implement the finterpto node into this script and properly smooth that camera rotation. Could it be that my exec connection for the camera's relative rotation is coming from that input yaw axis? Does this need to start at event begin play?

    Click image for larger version

Name:	blueprint.PNG
Views:	1
Size:	213.3 KB
ID:	1181598

    Thanks!
Working...
X