Search Issue Tracker
By Design
Votes
0
Found in
2023.2.9f1
2023.3.0b6
6000.0.0b11
Issue ID
UUM-62808
Regression
Yes
”connectedAnchor” is set to 0 when setting “FixedJoint.autoConfigureConnectedAnchor” to false
How to reproduce:
1. Open the user’s attached “FixedJoint.zip” project
2. Enter Play Mode
3. Observe the 2nd debug text in the Console window
Expected result: Text is not (0, 0, 0)
Actual result: Text is (0, 0, 0)
Reproducible with: 2023.2.0a20, 2023.2.9f1, 2023.3.0b6
Not reproducible with: 2021.3.35f1, 2022.3.19f1, 2023.2.0a19
Reproduced on: macOS 14.2.1 (Intel)
Not reproducible on: No other environment tested
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
- Scene view audio toggle doesn't work after disabling and enabling audio source component with audio random container
- Pitch changes while paused messes up scheduling of the audio random container
- Crash on detail::ComputeShaderSnippetKey when entering the Play mode
- Unable to interact with Material Inspector window when creating a new Material and renaming it
- Shadow artifact is cast onto GameObjects in the Scene view when the Scene view lighting is disabled
Resolution Note:
Hello,
During the 2023.X lifecycle we changed the way Joint::connectedAnchor is being handled. Previously setting Joint::autoConfigureConnectedAnchor to false would override the previous value of Joint::connectedAnchor, effectively losing any user data that was provided. During 2023.X we've changed it so the value being set to connectedAnchor is maintained even when Joint::autoConfigureConnectedAnchor is set to true.
If you want to have the old behaviour this can be achieved by doing the following:
var calculatedAnchor = myJoint.connectedAnchor; //connected anchor still returns the calculated value when autoConfigureConnectedAnchor is true
myJoint.connectedAnchor = calculatedAnchor;
myJoint.autoConfigureConnectedAnchor = false;
We are aware that neither behavior was ideal depending on use case and are planning to further improve this API and the joint inspector going forward.
Cheers,
AlexRvn