Search Issue Tracker
By Design
Votes
0
Found in
2017.3.1f1
Issue ID
1017891
Regression
No
Character Joint Angular Limits are being recalculated from a new position when you deactivate and reactivate GameObject
How to reproduce:
1. Open user's attached project "JointsBug.zip"
2. Enter game mode
3. Press "Toggle Active Left Bodies" even number of times inside the Game window
Expected result: GameObjects will disappear and appear in the same state
Actual result: GameObjects' joints change their angle
Note: reactivated GameObject seems to "forget" his original position and it calculates angle constraints from the new position (where it was activated last time)
Reproducible: 5.6.5p2, 2017.1.3p2, 2017.2.2p2, 2017.3.2f1, 2017.4.0f1, 2018.1.0b13, 2018.2.0.a6
Workaround: you could disable main child components of the gameObject. For example, if you just need to "hide" GameObject from the scene to reintroduce it later you can disable Mesh Rendered and Collider
Update: resolved by design, the moment gameObject is set active, the joint is initialized relative to this pose. Happens with all the other joint types too
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
koirat
Oct 20, 2018 10:11
It's a bug by design. There is no easy workaround for it.
Imagine you have to duplicate an existing GameObject with joints. You do GameObject.Instantiate(original) unfortunately all joints are recalculated and all positions and limits will be different in the cloned GameObject if it's not a prefab.
For example when trying to do ragdoll from existing moving character.