splat1 Edison
Registerd Nut
Join date: 6 Sep 2004
Posts: 353
|
10-16-2004 12:15
Hey, Im getting myself in a mess trying to rotate a set of linked prims round a point, the best way to desscribe this is. I have a torso, I want to move the arm that is 6 prims 90o round the sholder but its all linked including the torso, but i also want to keep the forearm parrell to the ground. Any clues ? Im not having much luck at all I did think about using a joint but i dont know how well that would hold up when the torso is moving or even if it can work as I have 2 arms. (Please note im not building a body im just using it as an exmple as its as close as I can get) Next question. A again for the same product im working on im trying to get the whole thing to follow an avatar, simpel in its self. but this is the tricky part that is just out of the reach. I want the model to follow 2 meters behind the avatar now that means I need to work out the avatars rotaion and then move behind it And if things where not complicated with that i also need the face of the model to face towards the avatar  And the last question. Is there any way to tell if an object is in the air of on the ground ? or if an avatar is flying or not? Firsty thanks for taking the time to look at this and thanks again if you can help 
_____________________
Splat Soft - We exsist in the RL to! Gigas Bunny (Mule) #### You see, our experts describe you as an appallingly dull fellow, unimaginative, timid, lacking in initiative, spineless, easily dominated, no sense of humour, tedious company and irrepressibly drab and awful. And whereas in most professions these would be considerable drawbacks, in chartered accountancy they are a positive boon.
|
Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
|
10-16-2004 12:31
Moving linked objects within a set. Put a script in each prim that whispers llGetLocalPos(). note all of the local positions. Move all the prims to the other location. Note all of the new local positions. Now send out a link message like "pos1" to the link set. When that prim receives that message, have it move to its' local position 1. Do the same thing for position 2. They all won't move smoothly like an articulated arm, but it is the best i got... I don't have a simple answer for the follow behind and at same rotation question. I know lots of people have done it. Av flying: integer info = llGetAgentInfo( id ); if (info & AGENT_FLYING) { // do stuff } Object in the air or on the ground - compare llGetPos() to llGround(). If you want to be exact you can get the prim sizes with llGetPrimitiveParams. Or check for land_collision() event. Hope that helps some.
|
splat1 Edison
Registerd Nut
Join date: 6 Sep 2004
Posts: 353
|
10-16-2004 13:26
Ok thanks  The flying info has saved me a lot of hassel so a top thanks for that  Still need to think of a way for the arm movement. I know it would be simpel to just stick it on the avatar but that would destroy half of what this is ment for.
_____________________
Splat Soft - We exsist in the RL to! Gigas Bunny (Mule) #### You see, our experts describe you as an appallingly dull fellow, unimaginative, timid, lacking in initiative, spineless, easily dominated, no sense of humour, tedious company and irrepressibly drab and awful. And whereas in most professions these would be considerable drawbacks, in chartered accountancy they are a positive boon.
|
Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
|
10-16-2004 13:32
Were you the one running around Cordova in the Giant attachment suit today? That was really cool.
|
splat1 Edison
Registerd Nut
Join date: 6 Sep 2004
Posts: 353
|
10-16-2004 14:20
It may have been me if i was wearing a suite that looked like a games workshop dreadnourght. i think i flew though. Can we keep posts on topic please , im still needed to get this sorted 
_____________________
Splat Soft - We exsist in the RL to! Gigas Bunny (Mule) #### You see, our experts describe you as an appallingly dull fellow, unimaginative, timid, lacking in initiative, spineless, easily dominated, no sense of humour, tedious company and irrepressibly drab and awful. And whereas in most professions these would be considerable drawbacks, in chartered accountancy they are a positive boon.
|