|
I can copy the Rigidbody of a prefab:
but I can't set it on my object:
This is just an excerpt. The full story is that in some cases when I Instantiate my missile, I need to Destroy the rigidbody. I want to be able to recreate it, with it's properties set as they were before I Destroyed it. I guess I'm looking for:
But there is no such function (AddComponent takes a string or a type).
(comments are locked)
|
|
You can't do it - the best you can do is copy the properties, then do a normal AddComponent(Rigidbody) and set the properties yourself I agree with Mike, add a new rigid body and then set its properties from the copy
May 17 '10 at 09:14 AM
spinaljack
(comments are locked)
|
