[Pogamut-list] Credible rotation (Rotate and TurnTo command)

frank_fjs pogamut-forum at diana.ms.mff.cuni.cz
Mon May 31 15:15:17 CEST 2010


Credible rotation (Rotate and TurnTo command)

Author: frank_fjs

Hi,

I'm trying to rotate my bot in a credible way changing pitch and roll at same time, like a player can do. I'm trying to choose rotation values with a fuzzy engine to simulate human behavior

I've proved use AdvancedLocomotion that use Rotate command in that way:
move.turnHorizontal(5000);
move.turnVertical(10000);
With that method my bot only do vertical turn (I think because it is in the same iteration)

I've proved too use:
Rotation rotation = new Rotation(10000,20000,0);
getAct().act(new TurnTo().setRotation(rotation));
I'm not sure if I can use it for both axis turn ¿is it posible?
Anyway using it (and others values) my bot always turn to same rotation position: (257.0, 26449.0, 0.0), I think maybe it is a bug ¿?

I don't want use TurnTo().setTarget() or setLocation() because I want my fuzzy engine calcule degree values. Any idea for execute both movement at same time?

Thanks

Frank

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_parentId=214#form>





More information about the Pogamut-list mailing list