Search Issue Tracker
By Design
Votes
0
Found in
2021.3.30f1
Issue ID
UUM-49034
Regression
No
Rigidbodies inherit velocity until first collision
How to reproduce:
1. Download and open the attached project
2. Enter Play mode
3. Observe the falling cubes
Expected outcome: Cubes fall with an accelerating velocity
Actual outcome: Cubes do not fall with an accelerating velocity until the first cube hits the ground
Reproducible with: 2021.3.30f1, 2022.3.9f1, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
-
chriscode
Nov 14, 2023 15:34
Thanks for explaining this one Boris
-
izzij620
Sep 14, 2023 02:01
i want to do a 3d racing game
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
- Symlinks are broken when a package which contains .xcframework + symlinks is added through Unity Package Manager.
- Crash on ApplyMaterialPass when opening a specific scene
- Memory leak when using Native Plugin in Windows IL2CPP Build
- [URP][Tutorial] Universal 3D Sample tutorial issues
- Gradle error: "...Unexpected error during link..." is thrown when building for Android and targeting API Level 34
Resolution Note:
The observed behavior is expected.
The instantiated cubes do not start with zero velocity because they are not instantiated from a prefab with zero velocity.
The "Instantiate" method on the Entity Manager creates a copy of the given entity along with its component values. To make every instantiated cube start with zero velocity, instantiate a prefab with zero velocity instead.
This can be easily achieved in the provided sample in two steps:
1) Drag and drop the cube game object into the assets folder to create a prefab.
2) Drag and drop the prefab from the assets folder onto the public field of the "SpawnAuthoring.cs" script called "PrefabGameObject".
Cheers,
Boris Karavasilev, DOTS QA