Code: Select all
O-O-O
I ask because it seems like the creation of a rigid body is a 1-time affair. Attempts to remove and re-create rigid bodies while the physics is updated almost always crashes my program. Thanks.
Code: Select all
O-O-O
Sure thing. I'm going to have animals eating things in the environment.Basroil wrote:There's not much anyone can do to help if you don't state why you want to do that, since there might be other ways to solve your issue that don't involve unsupported uses
I assume you mean a group-wise relationship of volume between a piece of food and all animals eating it right? (rather than food a mile away magically shrinking) If that's the case, you don't need to update the volume every frame, just those frames where a new animal comes inside an existing group but is not feeding (on something, assuming you have predators), that is in contact. For all other frames just scale your graphics models accordingly. After all, your overall volume delta is zero, so for any objects outside the broadphase collision area the group is equivalent.Berezovsky wrote:Sure thing. I'm going to have animals eating things in the environment.
However, I want the total volume of V=(animals+food) to remain constant over time. That's all.