Jump to content

petitelouison

Resident
  • Posts

    4
  • Joined

  • Last visited

Reputation

1 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for answer. I used llKeyframeMotion for lift but never for this kind of thing, I'll have a look.
  2. I come back to my question because for me, it is still not solved. I have only seen once a correct functioning without jerks. Now I always get these unsightly jerks that I don't know how to solve. I don't know how to put a video here to show what I get.
  3. Hello, Thanks for the fast answer ! I don't know why, but now it works smooth for me in world. Maybe this was laggy when I made my test before. Sync on llGetTime() is interesting, I never thought to use it this way. I can't notice a visual difference but it's nice to see how someone else would make the same thing. Edit : today I get the same shaking issue. I made a video but I really don't know how to put it here.
  4. Hello, I have a root for which I make a translation and a linked prim for which I make a rotation. I created this script for my tests: // Parameters to change float TIME = 3; // Time in seconds float HEIGHT = 2; // Height in meters float ANGLE = .5; // Angle in radian // Don't touch it! float TIME_BASE = .04; float f_step; vector v_pos; vector v_rot; float step; integer stop = TRUE; integer up; float fCos(float x, float y, float t) { float F = (1.0 - llCos(t * PI)) / 2.0; return x * (1.0 - F) + y * F; } move() { v_pos = llGetPos(); v_rot = llRot2Euler(llList2Rot(llGetLinkPrimitiveParams(2, [PRIM_ROT_LOCAL]), 0)); step = .0; up = TRUE; llSetTimerEvent(TIME_BASE); } default { state_entry() { f_step = 1.0 / (TIME / TIME_BASE); } on_rez(integer start_param) { stop = TRUE; llSetTimerEvent(.0); } touch_end(integer total_number) { if(stop = !stop) { llSetTimerEvent(.0); llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POSITION, v_pos, PRIM_LINK_TARGET, 2, PRIM_ROT_LOCAL, llEuler2Rot(v_rot)]); } else move(); } timer() { if(up) { if((step += f_step) >= 1.0) up = FALSE; } else { if((step -= f_step) <= .0) up = TRUE; } llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POSITION, v_pos + <0, 0, fCos(0, HEIGHT, step)>, PRIM_LINK_TARGET, 2, PRIM_ROT_LOCAL, llEuler2Rot(v_rot + <0, 0, fCos(0, ANGLE, step)>)]); } } So just 2 linked prims. It starts and stop with a click. The move is ok, the rotation is ok but... the relative position of the linked related to the root changes with shaking with a very unsightly effect. As I do both movements in the same function, I thought I wouldn't have this kind of problem. If someone has an idea to help me to get a good visual effect ! Thanks.
×
×
  • Create New...