|
Dudeney Ge
EduNation Archipelago
Join date: 21 Jul 2006
Posts: 95
|
10-03-2006 10:12
Hi All,
I need to make a small flat platform that an avatar can sit on and then use the usual movement keys to move the platform left, right, up, down and forward and backwards, etc. Can anyone give me some pointers as to how to get started - or at least where I should be looking in the Wiki? An example of one type of movement would be great - I could probably build the rest from there.
Thanks in advance,
DG
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
10-03-2006 11:17
You'll want llTakeControls and the control event.
There's a couple of example scripts in there. You'll want some variation around llApplyImpulse, llPushObject, llMoveToTarget or llSetPos to actually move, depending on whether you're going for physical or non-physcial movement.
Working out positions... is actually easy if you don't rotate it at all. If you do, you'll want something like offset * llGetRot for your target position.
|
|
Dudeney Ge
EduNation Archipelago
Join date: 21 Jul 2006
Posts: 95
|
Physical or Non
10-03-2006 11:59
Eloise,
You're a marvel - always here! ok I don't need any rotation or banking or anything fancy you find in vehicle scripts - simply left, right, forward, back and up, down. So what's better for moving an avatar on a prim - physical or non-physical? Or rather, what's the difference?
Thanks again
DG
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
10-04-2006 01:44
Physical movement will be smooth, but without something like llSetBuoyancy you'll also sink to the ground. You'll also get collisiions if you fly into things. Non-physical movement you "teleport" around, there are no collisions etc. you blip between your current position and your target. You will, however float quite happily at any height. This page covers the commands, and the pages it links out to discuss physical and non-physical movement in more detail.
|