Jump to content

Recommended Posts

Posted

I have a player and an enemy. The player has a mass of 10 and the enemy has a mass of 1. When the enemy isn't moving, I can push it, but if the enemy is moving using GoToPoint or SetInput, it doesn't budge. But if it is in the air, I can.

 

Anyone know why? Or how to fix this?

It's not a huge deal, but if it's a bug, then it's better to get it out there.

Posted

I guess NPCs can move everything movable on their way if they can collide? Cause if you would do a terrain and make a nav mesh, and after you would make a wall between the nav mesh, NPC would just go through. So I guess you have to edit AI file.

I am not silly. My english is just not really great. T_T

But I'm learning! :D

Posted

But the problem is; the player and enemy both use SetInput to move, and the player has a much higher mass and movement speed, so therefore the player should be able to push the enemy, not just get stuck on it.

Posted

But what would happen if 1 object would push another object from it's path? (I mean it takes more code to make it work)

If they are just have rails to move - they don't use any brain to bypass obstacles.

Actually same with NAV meshes, as much as I know (Maybe I'm wrong, it's possible) they don't check anything on their way.

 

But yeah, I guess it's not that hard to make them get directions again once something changed their old direction.

I am not silly. My english is just not really great. T_T

But I'm learning! :D

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...