I have the same problem with two instances of a game object files, I want to set its collision object mass for each as a different value. But once I edit one of them in the editor, the change affect the other instance. The first solution with GUI template is not applicable for me, this second one with script property looks promising but I don’t understand it well. Does it mean that if I override the value at run-time the behavior would be different than in the editor?, the change in one instance will not affect the other one?
Yeah, mass is read only. We will give the physics system some focus soon. We could probably look into this as well. I’ll make a note of it.
I have found around that on Box2D there is a function ResetMassData, to call after changing density. And on Corona SDK the solution is to remove and add again the physics object to the simulation.
Created DEF-3930
3 Likes