|
Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
|
01-31-2006 22:42
I tried to figure this out with the wiki and the search function, but the wiki isn't being helpful to me, and the search function, as of the time of this post, would rather I download the php page than display it...
I seem to have figured out that I'm going to need llMoveToTarget, but I can't seem to make it work.
My goal for now is rather simple, to move the avatar roughly 10 or so meters forward in a short amount of time, but I can't even get a wooden box to move when I use the function...
I'd appreciate any help you could offer.
|
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
01-31-2006 23:52
From: Sator Canetti I tried to figure this out with the wiki and the search function, but the wiki isn't being helpful to me, and the search function, as of the time of this post, would rather I download the php page than display it...
I seem to have figured out that I'm going to need llMoveToTarget, but I can't seem to make it work.
My goal for now is rather simple, to move the avatar roughly 10 or so meters forward in a short amount of time, but I can't even get a wooden box to move when I use the function...
I'd appreciate any help you could offer. I'm thinking you want to use llPushObject(key id, vector impulse, vector angular_impulse, integer local), but I'm not sure. Haven't played much with pushes myself, but a small push should work.
_____________________
imakehuddles.com/wordpress/
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
02-01-2006 04:19
There are three things that might stop you moving the cube, besides a duff bit of scripting such as never entering the event or similar. 1) You've set a target more than 60m by mistake. 2) You've got tau too low. 3) You've forgotten to set the cube to be phsycial. 1) can be checked by inserting llOwnerSay((string)llVecDist(llGetPos(), *target pos*)); - see http://secondlife.com/badgeo/wakka.php?wakka=llVecDist2) Can easily be checked by reading the script. 3) Can easily be altered by llSetStatus(STATUS_PHYSICAL, TRUE); see http://secondlife.com/badgeo/wakka.php?wakka=llSetStatusIf none of those help can you post the script please?
|
|
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
|
02-01-2006 08:10
From: Eloise Pasteur There are three things that might stop you moving the cube, besides a duff bit of scripting such as never entering the event or similar.
There's at least one more...if the cube is too massive (i.e., big), it won't have enough energy to move. LOL, but we don't want to go there. That whole mass/energy thing is wacked.  Anyway, this can't be the problem if it's the default-sized cube.
_____________________
Prim Composer for 3dsMax -- complete offline builder for prims and sculpties in 3ds Max http://liferain.com/downloads/primcomposer/
Hierarchical Prim Archive (HPA) -- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools. https://liferain.com/projects/hpa
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
02-01-2006 09:45
Ah good call Shack, yes I'd forgotten the delights of energy running out!
|
|
Fiona Fielding
Registered User
Join date: 21 Jun 2005
Posts: 24
|
02-01-2006 10:16
I made one of my main attachments do this on command. vector impulse = <push_amount,0,15.0>; llPushObject(llGetOwner(), impulse, ZERO_VECTOR, TRUE); Bounce! Just play with the push_amount variable. It's a float that I default to 50.0.
|
|
Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
|
02-01-2006 18:31
Actually, I figured it out ( the wiki's entry on at_target was key )
New question though, is there a way I can get the rotation of the avatar and add a distance forward from the position of the avatar?
|