Linetrace for "Is Grounded", "Is Not Grounded" looping issue
So I have added a line trace to my ball so that I can trigger an "IsGrounded?" boolean variable, it works but the problem is that when the ball is rolling on the ground the console prints "Is Grounded", "Is Not Grounded", "Is Grounded", "Is Not Grounded","Is Grounded", "Is Not Grounded"... etc. If the line trace I have is going through the actor (the floor) constantly why is the boolean being changed to false?
Alright so I was able to get something finally working, but not to your suggestion. I messed around with using material hits instead of an actor. For whatever reason the floor object I had was causing weird returns on the line trace. Here is a screen shot of what I have now that has been working consistently with no issues.
answered Jul 06 '15 at 09:13 PM
for something like this it might be better to use a oncomponentBeginoverlap. Put the sweep result into your break hit result and get rid of the line trace. maybe even the hit result node all together.
If its alternating, it may be because the direction of the trace is changing as the ball moves? if you want to use the trace... set the debug to duration and see where each trace is hitting. if they start going off in the air.. thats why. Find a way to point them at the aground within a foot of it.. or use an overlap instead.
answered Jul 03 '15 at 11:34 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here