Check if player is touching
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- ixjackinthebox
- Prole
- Posts: 45
- Joined: Sun Apr 29, 2012 6:00 pm
Check if player is touching
How can I check if a body is in contact with others?
Re: Check if player is touching
Bounding Box collision
Just insert x, y, width, height for each box.
When two boxes intersect the function returns true.
Just insert x, y, width, height for each box.
When two boxes intersect the function returns true.
Re: Check if player is touching
I assume you are talking about Box2D.
There are several ways to do this.
One approach is setting a contact/collision callback and buffering the collision data you get from there.
There are several ways to do this.
One approach is setting a contact/collision callback and buffering the collision data you get from there.
-
- Prole
- Posts: 16
- Joined: Mon Jun 25, 2012 7:17 am
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 2 guests