i currently have problems to activate physics on initiated Gameobjects via “IsKinematic=false” in a script.
- the objects are instantiated from a disabled prefab, which has “IsKinematic=true” and “Use Gravity=true”
*at a specific mousclick i set “IsKinematic=false” on all instances → this should bring their physics to life, but that doesn’t happen. Checking the flags in the Editor shows the correct state after i changed it via script.
-
Toggling the “IsKinematic” flag in the editor manually while running, triggers the expected behavior
-
By trial and error i found, setting “Use Gravity=true” at the same time i set “IsKinematic=false” via script solves the problem.
The physics start to run.
Anyone else ever seen this problem ?