15-11-2024, 10:39 AM
(This post was last modified: 15-11-2024, 10:40 AM by josemendez.)
(15-11-2024, 10:30 AM)vrtraining Wrote: I wanted the rope to have some extra particles at the start because at that point i need some extra precision and collision but the rest can follow a low resolution. So i manually points at the start. Now is it possible that the rest of the rope when extended from the middle follow the same resolution as blue print and start contains some extra points (which i have manually added)?
No, that's not possible by default. As explained, Obi does not support multirresolution ropes.
You could modify rope blueprints to report a custom average inter particle distance for the rope, this is the separation distance cursors use when adding new particles. Open up Obi/Scripts/RopeAndRod/Blueprints/ObiRopeBlueprint.cs and around lines 85-90 you'll see how the inter-particle distance is calculated:
Code:
int numSegments = m_ActiveParticleCount - (path.Closed ? 0 : 1);
if (numSegments > 0)
m_InterParticleDistance = path.Length / (float)numSegments;
else
m_InterParticleDistance = 0;
As you can see this is just the length of the rope divided by the amount of segments (gaps between particles). You can perform your own calculation here, or just add a multiplier to make the distance longer.
kind regards,