How do I use a line trace to keep my object level while also adding force?

Buzzcore
Fri, 21 Aug 2020 19:11:30 +0000
Community & Industry Discussion

I have tried for a few days without getting the results I want so I’m hoping someone with more knowledge can help.

What I am trying to do is have something hover above the ground by using a line trace as a simple spring to add force to my object. This bit works as intended.

The issue is that I also want to level my object to the ground, for this I am using the impact normal of the line trace. And creating a rotation from this and the forward vector of my object. This should work in theory, but I think the spring and the “levelling” blueprints are fighting each other. Causing my object to lag and then shake as you can see from the following video.

[https://streamable.com/5aa2hg][1]

Here is my blueprint for levelling, I have also tried RInterp before setting rotation but that didn’t work either.

So, any advice would be most welcome, I have already trawled Reddit, youtube and UE4 Answers hub.

4 posts - 1 participant