# Hitbox along sloped Surface / Ground (Wildstar)

**URL:** <https://forums.unrealengine.com/t/hitbox-along-sloped-surface-ground-wildstar/424331>\
**Category:** Community & Industry Discussion\
**Tags:** surface, ground, unreal-engine, hitbox, slope, question\
**Created:** [May 4, 2018, 5:03pm UTC](https://forums.unrealengine.com/t/hitbox-along-sloped-surface-ground-wildstar/424331 "2018-05-04T17:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![intronaut](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/intronaut/32/465475_2.png) [@intronaut](https://forums.unrealengine.com/u/intronaut)\
**Post date:** [May 4, 2018, 5:03pm UTC](https://forums.unrealengine.com/t/hitbox-along-sloped-surface-ground-wildstar/424331/1 "2018-05-04T17:03:00Z")

</div>

Hi guys,  
I’ve been thinking about how to handle this problem. In my third person game, I want the player to be able to aim on two axis, forward and right (not up/down). I’m using hitboxes for the attacks.

**Now a problem arises:** I want the player to be able to shoot up or down slopes, without having to aim up/down. The hitbox needs to adapt to the ground.  
I’ve created a fine piece of art presenting the problem:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/c/7ac7a4cbe3b89e49286128ab5e6e54e5dce02202.png)

The red box is the hitbox. Brown is the ground and black is the player character.  
The attack hitbox must conform to the ground, and the hitbox needs to be a single object, not multiples in a row if possible.

How would I tackle this? I think another game that uses a similar system is **Wildstar**. I’d love to know how they did their system, or at least how I could tackle this problem. Decals kinda behave like I want but I don’t think they can be used for attack hitboxes.  
Any tips?

**Thanks for your time and help guys!**
