Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to set the length of the rod
#1
I'd like to create a rod whose length is 0.2m. I wonder how to set the initial length of the rod, and I don't need to change it in run time.
Thank you very much.
Reply
#2
(13-01-2021, 08:49 AM)Mingrui Wrote: I'd like to create a rod whose length is 0.2m. I wonder how to set the initial length of the rod, and I don't need to change it in run time.
Thank you very much.

You can set both the shape and the length of the rod by clicking the "edit path" button and editing the curve that defines its shape. See:
http://obi.virtualmethodstudio.com/tutor...setup.html
Reply
#3
(13-01-2021, 08:51 AM)josemendez Wrote: You can set both the shape and the length of the rod by clicking the "edit path" button and editing the curve that defines its shape. See:
http://obi.virtualmethodstudio.com/tutor...setup.html
Thanks for your help. 

Another question: What does the white line (especially the middle vertical line) mean? Does it control the distances between particles? (screenshot is attached)
Reply
#4
(13-01-2021, 10:53 AM)Mingrui Wrote: Thanks for your help. 

Another question: What does the white line (especially the middle vertical line) mean? Does it control the distances between particles? (screenshot is attached)

I can't see any screenshots attached.

I guess you refer to the white lines that serve as guides for the shape of the rod. They let you visualize the centerline, orientation and thickness of the rod. Particle distance is not visually represented, you can just add a ObiParticleRenderer component to the rod to visualize them. See:
http://obi.virtualmethodstudio.com/tutor...ering.html
Reply
#5
(13-01-2021, 10:57 AM)josemendez Wrote: I can't see any screenshots attached.

I guess you refer to the white lines that serve as guides for the shape of the rod. They let you visualize the centerline, orientation and thickness of the rod. Particle distance is not visually represented, you can just add a ObiParticleRenderer component to the rod to visualize them. See:
http://obi.virtualmethodstudio.com/tutor...ering.html
Sorry, the screenshot is attached here.


Attached Files Thumbnail(s)
   
Reply
#6
(13-01-2021, 11:01 AM)Mingrui Wrote: Sorry, the screenshot is attached here.

The lines are just meant to give you a basic feel for the shape of the rod and its orientation. In a straight, uniform thickness rod, they won't seem like much. But they will really help once your rod has a shape like this:

[Image: ItjK1aX.png]

Just from the lines alone you get a lot of information: the rod is thicker in the middle region, it twists near the right end, and you get the "up" local orientation.

From particles, you would not be able to visualize any twisting or orientation. Sure enough, this is what the rod looks like when rendering it with a textured mesh:

[Image: lKLntZN.png]
Reply