Is it possible to detect if a node collides on only one side with another side?
For example an animal that runs against another animal. In that case the collision detection method gets called. But when the animal jumps over an animal and "walks" on it the collision detection do not get activated.
I would appreciate every answer. Thanks
My code:
if (lionNode.frame.origin.y + lionNode.frame.size.height < animalNode.frame.origin.y) {
NSLog(@"Walk");
}
else {
NSLog(@"dead");
}