In the level editor, when you have a floating box and you press the (Find or End) key on the keyboard, the box automatically aligns to the immediate object below it.
In other words, the box in the air “changes its position” and is placed right on top of the object underneath.
Is there any way to use this function in-game?
Can it be automatically activated in the game and using another key?
Without having to program it.
No, I don’t think that’s possible. You’re gonna have to program it.
Line trace to the ground, break the hit result, and set the actor’s location to the hit location. Drag off the impact normal from the hit result and use the node (make rot from z) for the actors rotation.
1 Like
thank you so much ,
Seeing that the engine has it by default, I would have liked to have been able to use that function, without having to reprogram it, something that has already been done
but thank you very much, anyway