# Rolling ball can jump on vertical surfaces

**URL:** <https://forums.unrealengine.com/t/rolling-ball-can-jump-on-vertical-surfaces/429461>\
**Category:** Blueprint\
**Tags:** rolling-ball, jump, unreal-engine, Blueprint, question\
**Created:** [July 15, 2018, 2:37am UTC](https://forums.unrealengine.com/t/rolling-ball-can-jump-on-vertical-surfaces/429461 "2018-07-15T02:37:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6d76fd6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6d76fd6](https://forums.unrealengine.com/u/anonymous_user_d6d76fd6)\
**Post date:** [July 15, 2018, 2:37am UTC](https://forums.unrealengine.com/t/rolling-ball-can-jump-on-vertical-surfaces/429461/1 "2018-07-15T02:37:01Z")

</div>

If you create a rolling ball template, you will notice that the “CanJump” variable will reset to true, regardless of whether the surface is horizontal or vertical. These means you can go up to a wall and just keep pressing the jump button and it will keep letting you jump.

Any way to fix this using blueprints?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d6d76fd6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d6d76fd6](https://forums.unrealengine.com/u/anonymous_user_d6d76fd6)\
**Post date:** [July 15, 2018, 3:58pm UTC](https://forums.unrealengine.com/t/rolling-ball-can-jump-on-vertical-surfaces/429461/2 "2018-07-15T15:58:51Z")

</div>

I figured out how to fix this: you need to do a line trace for objects, with the starting point being the relative location of the marble, and the end location being 100 pixels below it. Make sure “trace complex” is set to false and “ignore self” is set to true, and you’re all good to go!
