04-08-2020, 09:43 AM
(This post was last modified: 04-08-2020, 09:43 AM by josemendez.)
Add this:
After the "rope.ropeBlueprint = blueprint;" line.
The issue is that you're setting the stiffnesses in the blueprint batch, not the actor (runtime) batch.
cheers,
Quote:pinConstraints = rope.GetConstraintsByType(Oni.ConstraintType.Pin) as ObiConstraints<ObiPinConstraintsBatch>;
batch = pinConstraints.batches[0];
batch.stiffnesses[0 * 2 + 1] = 10000;
batch.stiffnesses[1 * 2 + 1] = 10000;
After the "rope.ropeBlueprint = blueprint;" line.
The issue is that you're setting the stiffnesses in the blueprint batch, not the actor (runtime) batch.
cheers,