Pushing a block in a direction

In a lot of games you are able to shove a block in a direction by pressing enter. I figured out how to move a block with an input command but I can only send it in one direction no matter what way I’m facing.

I can’t give you an exact answer, it would help to see your code.

But it’s almost certainly because you’re setting absolute values to move the block, rather than taking the direction of movement from the player forward vector.

hi,
like @ClockworkOcean said you need a direction specified where to push it.
for example here is a little push for my blocks

this is my player, where strength will be the speed you push the block

and here is the cube

both use a simple interface

hope this helps you :slight_smile:

cheers :vulcan_salute:

1 Like

I was able to figure it out by using multiple custom events tied to the same command and having a true false statement so that only one can happen.

By the way shift is called based on a user input