Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

new to scripting need help on animating an object

Temperance Snoodle
Registered User
Join date: 12 Jun 2008
Posts: 1
08-23-2009 19:11
okay i am really new to this and i need help with the llMoveToTarget i am not quite sure what goes next. i am wanting the object to roam freely and i am stuck on that part if anyoen can help me i woudl be oh so happy thank you and have a wonderfull day
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
08-23-2009 20:04
target = llGetPos() + < 1.0, 0.0, 0.0 > * llEuler2Rot( < 0.0, 0.0, llFrand( TWO_PI )> );
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Kayaker Magic
low carbonated footprint
Join date: 11 Sep 2008
Posts: 109
08-23-2009 20:38
There are several ways to animate an object, and they all have their drawbacks. LlMoveToTarget requires that the object be physical. Physical objects use up “energy” and sometimes fail to do what you want because they run out. This includes ‘buoyant’ objects falling out of the sky. 2) Objects can be a “vehicle” and this bypasses the energy limits on a physical object. There is a lot you must learn about the vehicle routines to get things working well. Vehicles have inertia and cannot easily be held to a pre-determined path. 3) You can move non-physical objects with llSetPos and do your own physics. In this case you can hold an object to a desired path easily. This has the disadvantage that you can only call llSetPos once every 0.2 seconds. (Unless you cheat and use MultiMove or some other workaround that bogs down the servers). On Mondays, Wednesdays and Fridays I just use llSetPos and figure that the jerky motion of my objects is OK. On Tuesdays and Thursdays I think I really need to learn how to use the vehicle routines to do what I want. On weekends I go kayaking.