<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hello, <div> i'm newbie for opensim :)<div>I'm writing a project that using the balance board to control the avatar. </div><div>i add a new function in ScenePresence,cs : public void BBControl(int i ) </div><div>i= 1 then move forward</div><div>i= 2 then turn left (just like press the arrow key <-- )</div><div>i= 3 the turn right ( like arrow key -->)</div><div><br></div><div> i tried to set the ControlFlags in the function ; </div><div>if i=1 </div><div> ControlFlags= (uint) (AgentManager.ControlFlags.AGENT_CONTROL_AT_POS | AgentManager.ControlFlags .AGENT_CONTROL_FAST_AT);i=</div><div><br></div><div>if i=2</div><div> ControlFlags = (uint) (AgentManager.ControlFlags.AGENT_CONTROL_YAW_NEG)</div><div><br></div><div><div style="text-indent: 0in !important; ">if i=3</div><div style="text-indent: 0in !important; "> ControlFlags= = (uint)(AgentManager.ControlFlags.AGENT_CONTROL_YAW_POS)</div><div style="text-indent: 0in !important; "><br></div><div style="text-indent: 0in !important; ">it works now great for the forward movement, but it did't work for rotation. i thought if i change the ControlFlags , it just like i pressed the arrow keys, but it did't work. Can anybody help me with this problem ???</div><div style="text-indent: 0in !important; "><br></div><div style="text-indent: 0in !important; "><br></div><div style="text-indent: 0in !important; ">thanks</div></div></div> <br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://www.windowslive.cn/messenger/' target='_new'>立刻下载!</a></body>
</html>