Bepu V.2 Scaling question
Posted: Sun Dec 15, 2019 5:29 pm
Is anyone can guide me about how to scale a body that already added in the world in runtime? Or i have too keep on recreate new shape and body when i scale, and addinto simulation again?
Code: Select all
var _shape = new Sphere(radius);
_shape.ComputeInertia(mass, out var _bodyInertia);
var _rigidPose = new RigidPose(new Vector3(0,0,0));
var _body = BodyDescription.CreateDynamic(_rigidPose, _bodyInertia, new CollidableDescription(Physic.Shapes.Add((Sphere)_shape), margin), new BodyActivityDescription(0.01f));