Subscribe to
Posts
Comments

Archive for September, 2008

In my room

整理硬碟時發現了以前的照片
大概是今年一月中左右所拍的
那時自己的房間是像這樣子的啦
哈哈,還很菜的那時候 ^^

多餘的程式碼

自己的日文程度不好的原故,
反覆揣摩老師繭羅小姐講過的話,
到今天才發現自己還蠻多地方寫錯了^^;
將一些無用的程式碼寫了進去.
LSL是沒我想像的那麼笨吧.(笨的是我吧,哈哈哈^^)
將今天修改的版本在Post一次.
//*****************************************************
//***   JH-Auto-Chair-Generate Table Ver. 0901      ***
//*****************************************************
// For LSL programming practice. Advisee Teacher : Mayura Johin
//
// Reversion History:
// **** 0826 Functional method
// **** 0901 Remove unnecesary code
//
// Known Bugs:
//
// System variables
vector DeskPos;
vector AgentPos;
float DeltaX;
float DeltaY;
float Theta;
float NewX;
float NewY;
rotation rot;
// Functions 
Pos_Detect()
{
    DeskPos = llGetPos();
    AgentPos = llDetectedPos(0);
    DeltaX = AgentPos.x - DeskPos.x;
    DeltaY = AgentPos.y - DeskPos.y;
}
Angle_Calculator(float [...]