C
C#2mo 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
actual_weeb_tm2mo ago
i dont have much experience with unity, but you could use an interface for this
Salman
Salman2mo ago
What do you mean by not touch. You can make them not crossable by just adding colliders on them
actual_weeb_tm
actual_weeb_tm2mo ago
yeah you should probably use the built in stuff lol
Salsa
SalsaOP2mo 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
SalsaOP2mo ago
Salsa
SalsaOP2mo ago
it has this weird jittery thing
actual_weeb_tm
actual_weeb_tm2mo ago
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
SalsaOP2mo ago
oh ok thx

Did you find this page helpful?