Does any one know if the collision object by James Harris will be converted?
I need to find out which side a collision occured.
Thanks.
Printable View
Does any one know if the collision object by James Harris will be converted?
I need to find out which side a collision occured.
Thanks.
If you only need to find out it the collision occured on the left or right of the object, you can simple compare the two objects position in the collision event:
+ Collision between [ObjectA] and [ObjectB]
+ [ObjectA] X position is greater than X("ObjectB")
---> Do stuff when collision was on the left side of ObjectA
+ Collision between [ObjectA] and [ObjectB]
+ [ObjectA] X position is lower than X("ObjectB")
---> Do stuff when collision was on the right side of ObjectA
I really liked the collision object.
I have not seen the creator of it online in a very long time.
Maybe its an object that can be recreated by someone else if he is gone.
No, i'm affraid that wont work for what i'm doing.
Thanks any way.
You could (on collision) calculate the degrees between object A and B to decide where (quite accurately) the collision took place.