Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

root motion movement is wrong if skeleton has added physics bone #53919

Open
Tracked by #45333
kyushu opened this issue Oct 17, 2021 · 0 comments
Open
Tracked by #45333

root motion movement is wrong if skeleton has added physics bone #53919

kyushu opened this issue Oct 17, 2021 · 0 comments

Comments

@kyushu
Copy link

kyushu commented Oct 17, 2021

Godot version

v4.0.dev.20211015.official [f113dc9]

System information

windows 10, GTX 1070

Issue description

root motion movement is wrong if physics bone has been added to skeleton

Check Steps to reproduce for details

Steps to reproduce

in uploaded project (test_physics_bone), there are 4 tscn

  • SimpleTestScene.tscn is the main scene:

    • press 1: toggle physics simulation
    • press s: make ChPlayer patrol with way points
    • Left click on scene: make ChPlayer walk
    • Right click on scene: make ChPlayer run
    • Middle Mouse Button: orbit the view
    • SHIFT + Middle Mouse Button: pan the view
  • PlayerModel.tscn: player model which has physics bone

  • PlayerModel_NonPhysicsBone.tscn: player model only

  • ChPlayer.tscn: control Player movement

By default, ChPlayer uses PlayerModel. play the main scene(F5)

  1. no matter you press s or Left/Right click to make character move, the player movement is wrong
  2. press 1 (start physics simulation)-> press 1(stop physics simulation) -> press s or Left/Right click to make character move, the player movement is fine.

Minimal reproduction project

test_physics_bone.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants