Problems toggling IsKinematic in Unity iPhone 1.03?

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 ?

Because objects go to sleep when not moving for more than one frame to save CPU time. Wake them up and it will work.

–Eric

ahh - thought that it was something like that …

thanks for making this clear to me, Eric :wink: