31-10-2017, 02:37 PM
Hi,
You don't need to create a new batch to put constraints in. By default, an empty pin constraints batch already exists. Also, these lines do nothing:
rope.DistanceConstraints.RemoveFromSolver(null);
rope.BendingConstraints.RemoveFromSolver(null);
rope.BendingConstraints.AddToSolver(rope);
rope.DistanceConstraints.AddToSolver(rope);
You're removing the constraints, then adding back the exact same set of constraints, which does nothing.
I don't think I quite understand the scene setup you're aiming for. The top-left cube is supposed to be attached to the rope, but when is it supposed to fall?
You don't need to create a new batch to put constraints in. By default, an empty pin constraints batch already exists. Also, these lines do nothing:
rope.DistanceConstraints.RemoveFromSolver(null);
rope.BendingConstraints.RemoveFromSolver(null);
rope.BendingConstraints.AddToSolver(rope);
rope.DistanceConstraints.AddToSolver(rope);
You're removing the constraints, then adding back the exact same set of constraints, which does nothing.
I don't think I quite understand the scene setup you're aiming for. The top-left cube is supposed to be attached to the rope, but when is it supposed to fall?