Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect two objects
#4
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?
Reply


Messages In This Thread
Connect two objects - by elfinik - 27-10-2017, 12:40 PM
RE: Connect two objects - by josemendez - 27-10-2017, 06:04 PM
RE: Connect two objects - by elfinik - 30-10-2017, 09:29 PM
RE: Connect two objects - by josemendez - 31-10-2017, 02:37 PM