Jump to content

Recommended Posts

Posted

Hey guys I was hoping to get some advice with some physics issues I am having with Enemies in my game. Its been an ongoing thing for a while.

So I am getting issues when fighting enemies in a melee fight. Something is happening where I think the player gets caught inside the physics shape of the enemy and this causes the game to crash.

Is there anything I can do to prevent this or to push the player back outside the physics shape of the enemy?(To prevent this random crashing).

Or even something I can add to the system to say when there is an error wait x amount of seconds before returning to normal functioning instead of crashing.

  • 2 weeks later...
Posted

I haven't done it myself but you could adding an invisible cylinder with physics to the enemy. Make it slightly bigger than the character to prevent the player getting "caught" inside the enemies physics shape. This might interfere with your melee attacks thou. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...