[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensim-users
Subject:    [Opensim-users] control avatar with wii balance board
From:       cupid_qu () hotmail ! com (QUcupid)
Date:       2010-07-25 21:23:33
Message-ID: SNT125-W9B2ED1B4A017A0664A668FFA50 () phx ! gbl
[Download RAW message or body]


Hello,  i'm newbie for opensim  :)I'm writing a project that using the balance board \
to control the avatar. i  add a new function in ScenePresence,cs     :   public void \
BBControl(int i )     i= 1  then move forwardi= 2  then turn left (just like press \
the arrow key <-- )i= 3  the turn right ( like arrow key -->)  i tried to set the  \
ControlFlags in the function ;   if i=1    ControlFlags= (uint) \
(AgentManager.ControlFlags.AGENT_CONTROL_AT_POS | AgentManager.ControlFlags \
.AGENT_CONTROL_FAST_AT);i= if  i=2  ControlFlags = (uint) \
(AgentManager.ControlFlags.AGENT_CONTROL_YAW_NEG) if  i=3  ControlFlags= = \
(uint)(AgentManager.ControlFlags.AGENT_CONTROL_YAW_POS) 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 ???

thanks 		 	   		  
_________________________________________________________________
MSN????????????????25???????????2010?????????
http://kaba.msn.com.cn/?k=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.berlios.de/pipermail/opensim-users/attachments/20100726/578c5d46/attachment.html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic