Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  ObiRopeCursor for ObiRod
#11
As you said, I connected in a projectile path now its not rotating around the axis. But you can see when I pull one end of the rope its not working the way I wanted. Since all other points are static its just extending through the points
https://drive.google.com/file/d/1A7bgdgq...sp=sharing

(01-08-2024, 01:56 PM)josemendez Wrote: Hi,

No need to attach all points, that will of course render the rope unable to move. As explained, you only need to attach *two points at each end*, and make sure they’re not all in a straight line.

Oh I see let me check

Hi,
 Now its not rotating 360 around its axis but far better now. How to prevent the slanting left/right ? I want a perfectly stable rod like rope as in that original game ? Here its tilting left/right
Please check the below link
https://drive.google.com/file/d/1Bk4dnMW...sp=sharing
Reply
#12
(01-08-2024, 01:56 PM)kripa1415 Wrote: As you said, I connected in a projectile path now its not rotating around the axis. But you can see when I pull one end of the rope its not working the way I wanted. Since all other points are static its just extending through the points
https://drive.google.com/file/d/1A7bgdgq...sp=sharing


Oh I see let me check

Hi,
 Now its not rotating 360 around its axis but far better now. How to prevent the slanting left/right ? I want a perfectly stable rod like rope as in that original game ? Here its tilting left/right
Please check the below link
https://drive.google.com/file/d/1Bk4dnMW...sp=sharing

If you want to remove all sideways movement, you could just project all particle positions to the plane that passes trough both attachment points. This will force the rope to always stay on that plane.

Alternatively you could remove gravity, that will prevent slanting in the rest pose (but not while moving).
Reply
#13
(01-08-2024, 02:09 PM)josemendez Wrote: If you want to remove all sideways movement, you could just project all particle positions to the plane that passes trough both attachment points. This will force the rope to always stay on that plane.

Alternatively you could remove gravity, that will prevent slanting in the rest pose (but not while moving).

Hi, 
   you could just project all particle positions to the plane that passes trough both attachment points.
   Could you send an example for this ? Not sure how to proceed. Any code snippet available in examples ?
Reply
#14
(01-08-2024, 02:15 PM)kripa1415 Wrote: Hi, 
   you could just project all particle positions to the plane that passes trough both attachment points.
   Could you send an example for this ? Not sure how to proceed. Any code snippet available in examples ?

Hi,

Yes, there’s several code snippets in the manual for dealing with particle data:
https://obi.virtualmethodstudio.com/manu...icles.html
Reply