- Home /
Collider detection with simulated sprite. 2D,How do I make simulated sprites collide?
I am working with a path following code through a waypoint system. It works great, but the moving sprites are simulated and aren't colliding or interacting with other objects. Idk what is wrong, or if it's even possible for simulated objects to interact or collide. ,I am working with a previously made path follower code with a waypoint system. It works great, but in order for it to do what I need, it must be able to collide and interact with other objects. However, It's not working and I don't know how to fix it, or if it's even possible.
Answer by IvyMoon · Jun 14, 2018 at 02:50 AM
when you say simulated what exactly are they a simulation of? A picture of the inspector window might help/ or the code that is creating them
do you mean they are cloned into the scene? if that is the case find the prefab/game object being instantiated and add a 2d box collider to it
Answer by mad040 · Jun 14, 2018 at 04:59 PM
Hi @IvyMoon, thank you for responding!
I have sprites with the "simulated" box checked. When the box is not checked, they do not move according to the script. I currently have a 2D circular box collider on each sprite that doesn't interact with anything else, even though they move with the sprites. My only hypothesis is that being "simulated" prevents the interaction with other objects.