Announcement

Collapse
No announcement yet.

Checking if my actor is touching the landscape?

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

    Checking if my actor is touching the landscape?

    Hi,

    So essentially- I've created a moving cube pawn, that, upon InputAxis forward moves in it's local X direction. Problem is, when I run over a hill and the cube flips midair, I don't want to be able to push forward and have the cube fly in whatever direction X is pointed at, so I figure the best workaround is to set my actor up so that I can't press forward unless the actor is touching the ground.

    Here's my Level Blueprint code regarding this:
    Click image for larger version

Name:	FxzzEeJ.png
Views:	1
Size:	90.5 KB
ID:	1170390

    Here's my Pawn Blueprint code regarding this:
    Click image for larger version

Name:	wmSyed7.png
Views:	1
Size:	99.8 KB
ID:	1170391


    I'm sort of new to Unreal Engine, so explaining things would be very helpful and much appreciated. Thanks!
Working...
X