Announcement

Collapse
No announcement yet.

Orient Hovering Vehicle to Surface

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

    Orient Hovering Vehicle to Surface

    Hey, I am trying to create an Hover car / spaceship racing game. I have got the Hover mechanics and spring physics working. Now I am stuck trying to get my Vehicle to orientate itself with the surface of the track as it changes direction and slope. I will attach some screens, I hope someone can give me a hand here.
    (Also if I change the Rinterp speed higher than 0.001 my game begins to lag).
    Click image for larger version

Name:	BP1.JPG
Views:	1
Size:	129.3 KB
ID:	1217747Click image for larger version

Name:	BP2.JPG
Views:	1
Size:	147.2 KB
ID:	1217748Click image for larger version

Name:	testscreen.JPG
Views:	1
Size:	51.5 KB
ID:	1217749

    #2
    I think part of the problem is that you are taking an absolute rotation (world space) and trying to plug it into a SetRelativeRotation (local space).
    Last edited by ausernottaken; 05-05-2017, 12:31 PM.

    Comment


      #3
      So, what would you suggest as a solution? I tried using the SetWorldRotation node and it didn't fair any better. Is there some other method you were referring too? I am pretty new to Unreal

      Comment


        #4
        Hey, I have solved my problem. I set the rotation to the Actor instead of the mesh and everything is working now. Thank you.

        Comment

        Working...
        X