Hi all!
Yeah I know, another ingame build thread...
I've searched and read a lot but I really can't seem to get the collision test to work.
What I want to accomplish is that when the player select an object to build from the menu is spawns and follows the mouse until clicked to be placed.
So far everything is working!
The issue I have is to check if the object being places is collision with anoter object, like a tree or a rock.
I've tried RayCasting but I can't get it to work properly, what I really wanted was to have a 360 raycasting around the object to see if anything is in conflict with the object, but that may be hard to do.
The issue with Raycasting is that it draws a small line from the object out into the world, but my object is sometimes big and a small line from the middle wont help if the object is colliding with its corner etc.
Anyway to solve this issue?
Have read about having box colliders at trigger zones where it is ok to build but it would be pain in the ass to setup those boxes in a forest with hundreds of trees and stones!
Thanks in advance
!