Comments (4)
At first I thought we could add some condition to the IsSlidingConditionSO
that would prevent the player entering the sliding state if the collider of the body he collided with is less than certain height.
But after more testing, I think this might actually be connected to #167. The problem is that the Pottery object has a sphere collider and you're "climbing" and sliding from this sphere. What seems to be worse, is that you can still climb the pottery even if it's much larger (that's without any jumping, I am just holding down a movement key):
I think limiting the slope that player can climb and maybe even matching it with the slope that's needed for player to slide would be a good solution.
from open-project-1.
Ah, if it's a matter of collider, it might be even better to assign it a different one (for instance a Capsule?). Again, no huge deal for now, but let's keep an eye on this one.
from open-project-1.
The problem from my previous comment seems to be fixed now. After I pulled a new version today, I can no longer reproduce it. I am not sure what fixed it, but now, if the pottery is larger it just blocks the player's movement and he's not able to walk over it, nor is there any flickering between walking and sliding states.
Regarding the original issue: yes, changing the collider would solve it, although maybe not Capsule, but rather Box collider. The thing is, Capsule collider still has a slope on its top so if it small enough it'll cause the same issue. Since Box collider has flat top, you either step through it if it's small enough or it will block your movement without changing to sliding state. In this case, the pottery objects are large enough to block the movement when using Box collider.
A bit off-topic: This might not be a good idea or maybe it won't be an issue at all but I wonder if it wouldn't make more sense to prefer Box colliders for small game objects as these pottery vases. I think in 99% of cases the Box collider would be good enough approximation of the object's actual shape so the player wouldn't notice anything and we would save ourselves some troubles with issues similar like this one. Also, I would expect that it's much more performant since box shape is much simpler than sphere or capsule.
from open-project-1.
Closing this one because the issue hasn't happened in a while, and we are happy with the current behaviour. Thanks!
from open-project-1.
Related Issues (20)
- Loading the currently loaded scene gives error. HOT 1
- NullReferenceException when entering dark red block HOT 4
- Build error: type or namespace name 'Localization' does not exist in the namespace 'UnityEditor' HOT 2
- Horizontal movement is stuck on rock
- Jumping into wall adds excessive speed
- First quest area to Field Hill can be missed HOT 1
- No collider on oven HOT 2
- Question: What about Assemblies?
- Question: Properly Loading with ScriptableObjects and its Events
- Cannot Play the Game with Unity 2020.3.26f1 LTS Due to Addressable Errors
- Opening State Machine Editor Window crashes Unity in 2021.2.9 and newer HOT 1
- Audio Save System Bug
- Loading screen does not support 21:9 screens
- Character stuck inside the tree
- I cant open the ZIP file HOT 1
- Shader error: Invalid subscript 'shadowCoord' when try build for mac
- Operation Suggest
- New game template?
- Cannot Analyze Addressable in project with Unity 2022.3.5f1 LTS
- 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-project-1.