Build #138: Walking over rats [RESOLVED]
-
- Posts: 555
- Joined: Fri Oct 23, 2015 8:19 pm
Build #138: Walking over rats [RESOLVED]
Rats are small enemies low to the ground. In classic, you cannot walk ontop of them. In DFunity, the enhanced mechanics for walking up steps and stuff is creating a problem here where it's triggering on rats. I don't know if you can create an exception for enemies here, or if the rat hitbox just needs to be raised.
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Build #138: Walking over rats
That may be a special case of can climb up enemies
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
-
- Posts: 555
- Joined: Fri Oct 23, 2015 8:19 pm
Re: Build #138: Walking over rats
I don't think it's related. Walking over things isn't the same as triggering climbing mode.
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Build #138: Walking over rats
Mmmh on second thought you're probably right, mechanics are different.
Doing too many things at once
Doing too many things at once
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Build #138: Walking over rats
Also, rats can walk over rats; So you can get attacked by a tower of two rats
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Build #138: Walking over rats
The problem here is the character controller step height is too easily able to mount rat's low capsule collider. Unfortunately step height needs to be high so player and mobiles can traverse can some of the rather steep geometry in classic.
We could work around it by increasing minimum height of enemy capsules and ensuring billboard is still placed correctly. This will make rat slightly easier to hit when aiming above the billboard though. Probably not a bit deal.
I've been aware of the bug for a while. One of my favourite things to do is try to get the skeleton in PH to ride a rat. It just cracks me up for some reason.
We could work around it by increasing minimum height of enemy capsules and ensuring billboard is still placed correctly. This will make rat slightly easier to hit when aiming above the billboard though. Probably not a bit deal.
I've been aware of the bug for a while. One of my favourite things to do is try to get the skeleton in PH to ride a rat. It just cracks me up for some reason.
- pango
- Posts: 3359
- Joined: Wed Jul 18, 2018 6:14 pm
- Location: France
- Contact:
Re: Build #138: Walking over rats
Could their physic material have very little friction, so they're very slippery instead?
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Build #138: Walking over rats
I'm not sure, but probably not. The standard character controller in Unity is a bit hacky and I don't think it respects physics materials. Rather the object is piloted around in a kinematic manner. And if it did respect friction properly, the enemy object can't be slippery or it would just glide around like on ice. It would still require friction to interact nicely with environment.
I think best solution is just to increase minimum capsule height of collider a bit, or even lower step height of enemies. Although that second option will also limit non-flyer ability to follow player.
I think best solution is just to increase minimum capsule height of collider a bit, or even lower step height of enemies. Although that second option will also limit non-flyer ability to follow player.
-
- Posts: 195
- Joined: Thu Apr 02, 2015 9:03 am
Re: Build #138: Walking over rats
A stupid question probably, but does the controller have to be a rectangular box?
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Build #138: Walking over rats
It's not a box, it's a capsule (like a pill shape).