Second Life tutorial: Creating a door that opens and closes
Uploader Comments ( IanMonstre )
All Comments (42)
-
Ok, took much eye straining and experimentation but i think the correct code up until 4:00 is touch_start(integer total_number) { rotation rot = llGetLocalRot(); string z = (string)rot.z; string s = (string)rot.s; llSay(0, "z = " + z + ", s = "+ s);
-
Think the video uploader is long gone folks, shit
-
The website on that url is either bullshit or down theres no link to download that video.
-
Can you please post the script that is required to get the door to work, I really am struggling to read it from the video. Thanks x
-
Thank you! Was struggling to understand why a door was pivoting around its center Z axis and now I understand why. It's years after you did this video, but it's still paying dividends for others. Cheers! :-)
-
There is a mistake in the script shown. it should be llGetLocalRot() not llSetLocalRot(). Changing this made it work for me.
-
I've trying it but when i do it for postion it goes away
-
ctrl key and mousewheel or + key on keyboard to make video larger to view script
- Loading comment...
Take a look at the resources section on dub dub dub dot slbuilding dot com
Obviously replacing "dub" with "w" and "dot" with "." in the URL. Youtube doesn't seem to let you post URLs in the comments of videos
IanMonstre 5 years ago
Not really if you're using this method, which is a bit of a simple way of performing an offset rotation but it easier to understand than the alternative.
The alternative - if you're interested - involves multiplying the offset from centre of the door by the rotation amount then adding the centre position to the result, and passing this value as a parameter to the llSetPos command.
There's an example on the second life forums, try searching for "offset rotations"
IanMonstre 5 years ago
Download a better quality version of this video plus source code from slbuilding dotcom
IanMonstre 5 years ago