|
Weyland Yutani
Registered User
Join date: 30 Sep 2006
Posts: 5
|
09-30-2006 08:55
Is it possible to have one object rotate and yet remain in a fixed position relative to another object?
I'd like to attach something to an avatar so that it acts as a base. The base has some prims that stick out, and one in particular I want to use as a point of rotation for another object. The second object would ideally be able to rotate around that anchor point prim.
Is this sort of thing possible?
|
|
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
|
10-01-2006 15:56
Do you want to accomplish this in one attachment or two?
Also, you stink for beating me to registering Weyland Yutani. =)
|
|
Weyland Yutani
Registered User
Join date: 30 Sep 2006
Posts: 5
|
10-03-2006 13:22
 Sorry Kage. Although, Seraph is a pretty sweet Last name! I wanted to do it as a single attachment. I wanted to anchor an object (a group of prims) to an av and then have another object be able to pivot about a point on the anchor object. I'm also not sure of the nomenclature used in SL. Is "object" the proper term when talking about a group of prims?
|
|
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
|
10-03-2006 14:09
Yes, a linked set of prims is properly called an object-- up to 255 or so prims for a nonphysical object and up to 31 for physical objects. You count as one prim if you're sitting on it, due to the way the physics engine "links" you to an object when you sit on it. Regarding offset child prim rotation, you would have to do it with brute force means. That is, you'd have to have the child prim calculate its new position and rotation and update the client with this info several times a second. SL performance being what it is, this method might be a bit jerky. If smooth rotation is the highest goal, then a separate attachment for the child prim bit and llTargetOmega may be a better route. On the other hand, if you want to do it with one attachment, you might consider investigating child rotation , which, while dry, is quite useful in this application. Unfortunately I don't have any good sense of how conversant you are with LSL scripting, so it is hard to know how to formulate a reply that's useful to you. Perhaps take a look at the above link and reply with questions? Also, if you're comfortable with revealing further details of your project, other respondents and I may be better equipped to help get you where you want to go.
|
|
Weyland Yutani
Registered User
Join date: 30 Sep 2006
Posts: 5
|
10-03-2006 19:11
Thanks for the info Kage.
I've only just started in SL, but I'm not at all concerned about the complexity of their scripting language. It seems simple enough. I brushed over the child rotation link and that sounds promising. I'll get proper time to give it a read soon.
|