change physic type in realtime

Can I chage physic type of objects in game(runtime)?
Like change physic type from dynamic or rigid body to no collision.

off topic question.
when i use add object it add as link object or another object?

  1. make a copy of your object
  2. give them both different physics
  3. move the copy to another layer
  4. add an empty and attach it to your main object
  5. assign a key to your main object that indicates the object to end
  6. assign the exact same key to your empty and add your copy of your object

maybe i haven´t explained it that good because i am not that good in english so i added my blend ( blender 2.63a ). maybe there is a batter solution but this one works fine for me.

Attachments

change physics.blend (373 KB)

The only way is to replace the object.
Change Physic Type.blend (155 KB)

TOUCH----AND----EDIT_OBJECT: Suspend Physics

Also if you look on Resources subforum, i posted a Python LOD with reduction of physics

Suspend dynamic just make object to static so I go with add object method.
Thank you for your solution I’m not good with English too so I can understand all of your explain.:evilgrin:
So this thread is solve.
If someone had better solution I still want to learn.

@juancarlospaco
I’m use blender 2.61 when I press P I can’t see anything.

Use my example in post #3. This is works with Blender 2.61.

@HG1 lod not work and I don’t know cause of problem.

The problem is that it is saved in Blender 2.63a I have made my file with Blender 2.59. Since Blender 2.63 BMesh is integrated in Blender, so the file is not backward compatible to Blender 2.61. But if the file is not using N-Gones (BMesh) you can open and store the file with Blender 2.62. Then you can open it with Blender 2.61.

I have converted his file to Blender 2.59.

Attachments

change physics.blend (324 KB)

Oh I see I have to advance to blender 2.63 in no time