Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualmrmohadnan

Posted 21 May 2013 - 05:03 AM

thanks David smile.png , sorry I am assuming 3d of course smile.png  , I have bounding box surrounding my player and also for the enemy , now I can fire a ray to check collision in front of enemy then if I am collide with the ray enemy can attack else enemy can't , but this looks odd and very bad as I must be in front of enemy , so instead I want a zone ( circle ) which is dangerous circle so that when I am inside this circle enemy can attack 

Note : anyone have another strategy pls share with some code if you can smile.png .

David , you said that I can do this by using view angle for each enemy instead , can you post some code if you can taking in mind the ray I can use for each model in the game .
dhk5taecpo6k6mp6g.jpg


#2mrmohadnan

Posted 21 May 2013 - 04:54 AM

thanks David smile.png , sorry I am assuming 3d of course smile.png  , I have bounding box surrounding my player and also for the enemy , now I can fire a ray to check collision in front of enemy then if I am collide with the ray enemy can attack else enemy can't , but this looks odd and very bad as I must be in front of enemy , so instead I want a zone ( circle ) which is dangerous circle so that when I am inside this circle enemy can attack 

Note : anyone have another strategy pls share with some code if you can :) .


#1mrmohadnan

Posted 21 May 2013 - 04:52 AM

thanks David :) , sorry I am assuming 3d of course :)  , I have bounding box surrounding my player and also for the enemy , now I can fire a ray to check collision in front of enemy then if I am collide with the ray enemy can attack else enemy can't , but this looks odd and very bad as I must be in front of enemy .


PARTNERS