Jump to content

Talarus Luan

Resident
  • Posts

    140
  • Joined

  • Last visited

Posts posted by Talarus Luan

  1. If you are using llTargetOmega, you're basically screwed. It always "spins" based on the global axis (except for attachments). Rotating the object means the spin will follow whatever the new axis is.

    You either have to detect the change in rotation and re-issue the llTargetOmega call with an adjusted axis, or use another method to do rotation. Depending on how you've designed the wheel, you might be able to use texture animation to simulate rotation.

    You can also try a fast timer with setting the rotation via llSetRot(),llSetLocalRot(), or llSet*PrimitiveParams() calls in small increments, but that method is particularly nasty and I would recommend against it.

  2. There is no direct LSL function call to retrieve that information.

    However, if there is a LL web page for the parcel which can give you that information, you can try and scrape it using llHTTPRequest.

    The downside to that method is it can change at any time, so be prepared to update any products you make using it.

  3. Change

    vector push = <0,0,0.2>;          // Force pushed on particles

    to

    vector push = <0,0,-0.2>;          // Force pushed on particles

     

    and

                            PSYS_SRC_INNERANGLE,innerAngle, 
                            PSYS_SRC_OUTERANGLE,outerAngle,
    to
    //                        PSYS_SRC_INNERANGLE,innerAngle, 
    //                        PSYS_SRC_OUTERANGLE,outerAngle,
    You don't want to do both Inner/Outer Angle and Angle Begin/End.
×
×
  • Create New...