C
C#3w ago
Salsa

help with boundaries in Unity

whats the best way to make it so that wherever i place walls or sprites or whatever, they act as boundaries that players nor enemies can touch/cross?
8 Replies
actual_weeb_tm
i dont have much experience with unity, but you could use an interface for this
Salman
Salman3w ago
What do you mean by not touch. You can make them not crossable by just adding colliders on them
actual_weeb_tm
yeah you should probably use the built in stuff lol
Salsa
SalsaOP3w ago
idk i just want some boundaries/walls, i tried just adding box colliders 2dand static rigid body 2d (i also tried kinematic) and yes this is in 2d.
Salsa
SalsaOP3w ago
Salsa
SalsaOP3w ago
it has this weird jittery thing
actual_weeb_tm
this seems like something to ask in the unity discord instead of here, since this is more of an engine issue than a language issue
Salsa
SalsaOP3w ago
oh ok thx

Did you find this page helpful?