Showing posts with label Second Life. Show all posts
Showing posts with label Second Life. Show all posts

10 September 2008

Teaching Fraser Fonda to Ride a Bike

Having problems with the code to animate my Second Life avatar to ride its bike any thoughts?

This is the code from SL

default
{
state_entry()
{
llSetSitText("Ride");
llSitTarget(<0.6,>, ZERO_ROTATION);
llSetCameraEyeOffset(<-5.0, 0.0, 2.0>);
llSetCameraAtOffset(<3.0,>);
llSetVehicleFlags(-1);
llSetVehicleType(VEHICLE_TYPE_CAR);
llSetVehicleFlags(VEHICLE_FLAG_NO_FLY_UP VEHICLE_FLAG_LIMIT_ROLL_ONLY);
llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.2);
llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.80);
llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 0.10);
llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 0.10);

llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 1.0);
llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 0.2);
llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.1);
llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.5);


llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <1000.0,>);
llSetVehicleVectorParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, <10.0,>);


llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.50);
llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.50);

llSetVehicleFloatParam(VEHICLE_BANKING_EFFICIENCY, 0.99);
llSetVehicleFloatParam(VEHICLE_BANKING_TIMESCALE, 0.01);
}

changed(integer change)
{
if (change & CHANGED_LINK)
{
key agent = llAvatarOnSitTarget();
if (agent)
{
if (agent != llGetOwner())
{
llSay(0, "You aren't the owner");
llUnSit(agent);
llPushObject(agent, <0,0,100>, ZERO_VECTOR, FALSE);
}
else
{
llSetStatus(STATUS_PHYSICS, TRUE);
llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION PERMISSION_TAKE_CONTROLS);
}
}
else
{
llSetStatus(STATUS_PHYSICS, FALSE);
llReleaseControls();
llStopAnimation("motorcycle_sit");
}
}

}

run_time_permissions(integer perm)
{
if (perm)
{
llStartAnimation("motorcycle_sit");
llTakeControls(CONTROL_FWD CONTROL_BACK CONTROL_RIGHT CONTROL_LEFT CONTROL_ROT_RIGHT CONTROL_ROT_LEFT, TRUE, FALSE);
}
}
control(key id, integer level, integer edge)
{ vector angular_motor;

21 July 2008

Sketches from Second Life

Some very initial ideas:Second Life could be an interesting place to set up a replay event of Rider Spoke. If we bought an island we could build a city/environment and invite participants to cycle finding audio embedded in objects. The island could be set to only allow participants with an invitation. Its possible to control the light so it could always be dusk. I built a version that was like the box of a cave thinking about the data produced by the finger printing as a journey shape we could follow. Would like to have an immersive version of SL in the CAVE. It would be great if the journey could work in SL on a power wall and in a CAVE.

Thinking of how to show different versions of the data, thinking of the diagrams lief showed us of the fingerprinting positions. Also of the surfaces of the road potholes the city as skin, and the glow of street lights. Underpass and google maps sometimes otherworldly, changes of focus. Cluster points would act as places where the audio would be triggered and a question is answered.