Search Issue Tracker

By Design

Votes

1

Found in

5.3.1p2

Issue ID

765395

Regression

No

Spring Joints Anchor and Connected Anchor Y values different when added manually and procedurally

Physics

-

Reproduction step:
1) Open users submitted project and proceed to scene "Spring Bug".
2) Go into playmode and in the scene view try dragging both capsules.

Note: Sphere to the left has Spring joint added via Editor and the sphere to the right has it added via script that is attached to a sphere itself.

Expected result: Spring joint generated via script should have same Anchor and Connected Anchor Y values as one added via Editor(Capsule and sphere are positioned identically relative to each other in both cases)
Actual result: Spring joint Anchor and Connected Anchor Y values differ by 0.5

Workaround: Tweak this values once spring is added.

Reproduced with: 5.3.2p1 5.4.0b3 5.2.4f1 5.1.4f1

  1. Resolution Note:

    This is designed so that it will make a best guess at where the user might want to position the anchors at in the editor, but will not do so with the plain API for perf reasons.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.