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
Comments (2)
-
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
- Console displays "ArgumentException: Cannot unschedule unknown scheduled function UnityEngine..." error after the "Audio Random Container" closing
- “[In Project] Unknown filter “i”” message is thrown in Search window
- [Ubuntu] Asset Bundles Dropdowns Contain Empty Row in Inspector
- Symbols are generated for a third-party native plug-in with 'Shared Library Type' set to 'Executable' when building for Android
- "Search by Import Log Type" Icon Nearly Invisible in Light Theme (Project Window)
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