How To Find the Height of Level Floor?
I have my player create buildings and then release them into the game world. The challenge is... how to find the Z height of the level floor so I can set the building directly on the floor. Any suggestions to handle this would be appreciated, thank you.
As Jacky said, tracing is the way to do it. And filtering can be achieved by creating a custom collision channel and then trace only for that channel.
The BP method is called 'Single Line Trace By Channel'. To add custom channels check how Epic created custom channels for their ShooterGame. It is all in the projects DefaultEngine.ini under the [/Script/Engine.CollisionProfile] group, apart you should then also create a define in your main game header (in case its a native project) to make you life easier.
An example (the response can be block or overlap, depending on what you need in each case):
This would be what goes into your main header (ShooterGame.h in case of Epic example project):
Hope this helps.
EDIT: I'll resolve the issue. If you still need assistance please re-open it.
Follow this question
Once you sign in you will be able to subscribe for any updates here