Closed pyro-dragon closed 10 years ago
I have mostly done this now. It does require that the isTrigger bug is fixed. Also filtering the collision by layer would be amazing because then I can take out things like units and trees. EDIT: This is a question I asked relating to the isTrigger issue http://answers.unity3d.com/questions/654932/why-does-istrigger-true-not-work-without-an-update.html
This may be useful for making sure we are only checking the layers we need to http://docs.unity3d.com/Documentation/ScriptReference/Physics.IgnoreLayerCollision.html And this too http://answers.unity3d.com/questions/61737/how-to-use-ignore-layer-collisions.html
Almost complete. Now all I need to do is to disable and enable the footprint object when disabling and enabling the builder tool. OR Delete the footprint when disabled and create a new one when enabling. This is probably a more final solution.
This was done last week
Assert if a place is valid for building based on if the building collider is intersecting any other buildings or immovable features.