Hi, im really sorry, but im new to all of this stuff and im trying to learn, i was wondering if anyone would be able to help me with collision detection, i only have a basic thing setup atm where you can move a box.
Thank you - Layla
help with collision detection :(
A box isn't bad. You could also use a circle, eg. dist=sqrt(xdist² + ydist²), if dist<radius then collide.
But say, are you talking about 2D or 3D, and what shape shall collide with which other shape(s)?
But say, are you talking about 2D or 3D, and what shape shall collide with which other shape(s)?
-
- What is PSXDEV?
- Posts: 2
- Joined: Dec 28, 2022
its just a 2D box shape, and i want it to be able to collide with the walls so that it can't leave the screen
Who is online
Users browsing this forum: Bing [Bot] and 8 guests