|
Boreal Latte
Registered User
Join date: 15 Nov 2007
Posts: 104
|
07-10-2008 04:36
I want to make a flexiprim rotate a bit relative to a root prim. I think I need to do llSetLocalRot on a flexiprim, but run into the problem that the flexi seems to be hinged in the middle of the prim rather than at its edge.
I then tried to path cut the flexi (which is a box and not a cylinder) to get the "center" sit at the edge. It looks like it works in the builder, but alas, the effect is the same, it thinks the center of rotation is really the physical center, and the hinge is no longer at the edge.
Anybody has a clue what I am talking about, or even a solution?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
07-10-2008 10:15
Pretend the flexi-prim is still a normal prim. How would you rotate and position it to have it do what you want? Try the same thing with the flexi-prim. Hint: you'll have to rotate AND position the prim.
|
|
Boreal Latte
Registered User
Join date: 15 Nov 2007
Posts: 104
|
07-12-2008 11:54
Tx. Hewee. I just wanted to know if there was a way around changing both position and rotation. The point is that I can make a non-flexi in which I do not need to change position. By cutting a box at 0.375 and .875 I get a half size box which is hinged at the edge rather than in the middle of the prim. Hence it works without position change for non-flexi.
But it seems that you are right, there is no way to hinge a flexi at the edge. (That is, using scripting, as they are hinged at the edge in the editor just to confuse me).
Hence I need to adjust both, and then it must be done in a llSetPrimitiveParams to avoid a 0.2 sec delay between setting the position and setting the rot.
|