Blueprint Change Rotation On Hit

just got into UE and tried to do some basic things. (comeing from unity)

Made a cube move and when it hits a wall it should rotate and keep moveing in the direction.

The moveing part isnt done yet but the rotation is and its not working :frowning:

Any idea why? when I enable Simulation Generates Hit Events on the moveing cube it just gets weird because of the floor i guess.

I do this in my game for a similar like object. I think it might answer your question.

Also to note, that I also have my object always facing forward. That is set elsewhere. So to compensate for that, I re-wrote it a little to possibly work better for you.

Also, I’m not sure if Get Reflection Vector returns a 1.0 length vector, or one of equal size. If it is a 1.0 just take the VectorLength out of the `GetForwardVector, and multiply it by the reflection vector.