Problems scripting a game like The Sims

Hi guys
I’ve got a problem trying to make a plane(floor) that collides and identify the type of the that object
Im using this 2 scripts one for the plane and one for the object:
Object:

Plane:

Any1 got a tip for me and my colleagues.

AWWW one more question, anyone can give me a tip of how create a grid, like in the sims construction mode ?

Hi, welcome to the forum!

You may find you need to use an OnCollisionEnter function on your script rather than OnTriggerStay. OnTriggerStay will only work if the collider has its Is Trigger property enabled and it will get called each frame while an object is in contact with the trigger, which is probably not what you want. Also, a trigger doesn’t collide physically with objects, it just registers contact with them.

ohhh thx andeeee :smile: we worked a script out, maybe a lil noobish but it works thx a lot