Obi Official Forum
What is control point normal - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: What is control point normal (/thread-2829.html)



What is control point normal - Hakazaba - 25-03-2021

When using AddControlPoint, what does the normal parameter do? In the net example, it is set to Vector.Up. Are there situations where other vectors should be used?


RE: What is control point normal - josemendez - 25-03-2021

(25-03-2021, 04:21 PM)Hakazaba Wrote: When using AddControlPoint, what does the normal parameter do? In the net example, it is set to Vector.Up. Are there situations where other vectors should be used?


This controls rod orientation (torsion). For ropes it has no effect (since rope particles aren't oriented), so Vector.up is generally used.


RE: What is control point normal - Hakazaba - 26-03-2021

Ok, thanks


RE: What is control point normal - Hakazaba - 27-03-2021

Normal does seem to do something in rods, What should it be set to?

Also, when applying a dynamic particle attachment that constains orientation to a rod. How do i set the orientation which the rod is constrained to. Currently, when i run, the rod tries to flip 180 degrees around to face the opposite direction to what i want it to be oriented in.


RE: What is control point normal - josemendez - 29-03-2021

(27-03-2021, 04:56 AM)Hakazaba Wrote: Normal does seem to do something in rods, What should it be set to?

Also, when applying a dynamic particle attachment that constains orientation to a rod. How do i set the orientation which the rod is constrained to. Currently, when i run, the rod tries to flip 180 degrees around to face the opposite direction to what i want it to be oriented in.

As I indicated before, the normal controls rod orientation. You should set it to whatever you want/need, depending on how you want your rods to be oriented. Generally speaking, it should be orthogonal to the path's tangent.

Quote:How do i set the orientation which the rod is constrained to.

By specifying the normal vector when creating the rod.

Quote:Currently, when i run, the rod tries to flip 180 degrees around to face the opposite direction to what i want it to be oriented in.

Then you need to negateĀ  your normal vector.

cheers!


RE: What is control point normal - Hakazaba - 31-03-2021

Thank you.