stride3d / stride3d/stride

Weird behavior of the physics CharacterComponent - SetVelocity()

Open
#1,316 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Physics bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: Official Release

Version: 4.1.0.1459-beta

Platform(s): Windows

Describe the bug
Character moving using SetVelocity() method cause jerky chopped motion at some point.

To Reproduce
I made this SUPER simple project to demonstrate problem (see attached zip file). Just hold W or UP key to move forward and turn by mouse... After a while you can find a "sweet spot"👌 🤔 , where capsule movement starts to be jerky or slowed down. And then it fixes itself again.

Expected behavior
Sleek & smooth character motion ;)

Additional context
Based on my tests, I'm starting to think there may be a problem with BulletPhysics.
CharacterVelocity.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening and running the attached CharacterVelocity.zip reproduction, using SetVelocity() while moving and turning until the jerky motion appears. Then investigate the character physics path and the reported BulletPhysics interaction; done means the reproduced motion remains smooth without the intermittent slowdown.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.