Jump to content

[SOLVED] Bullet to PlayerActor collision


photo

Recommended Posts

Hi,

 

I was trying to simulate bullet(has body) collision with a custom AI class that has a PlayerActor instance. How do I detect if the bullet has hit the PlayerActor capsule shape? Currently, from the bullet's contact callback function, I am receiving a contact with a body (of AI). I presume this body is PlayerActor class's body (playerActor.getBody()). Now that I have found this body, how do I find it's PlayerActor?

Link to comment
×
×
  • Create New...