How to make an object rotate in yaw, pitch or roll

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

How to make an object rotate in yaw, pitch or roll

Postby arkdemon » Sun Jan 26, 2014 12:41 pm

Hello everyone. This is a dumb question, I know, but how do we make a NewtonBody rotate in yaw, pitch and roll?
Thank you for your answers.
My name is arkdemon and I don't approve this message :D
User avatar
arkdemon
 
Posts: 90
Joined: Sat Jan 18, 2014 12:38 pm

Re: How to make an object rotate in yaw, pitch or roll

Postby arkdemon » Sun Jan 26, 2014 1:10 pm

I found out! You have to change NewtonBodySetOmega(x is pitch,y is yaw,z is roll)
My name is arkdemon and I don't approve this message :D
User avatar
arkdemon
 
Posts: 90
Joined: Sat Jan 18, 2014 12:38 pm

Re: How to make an object rotate in yaw, pitch or roll

Postby arkdemon » Sun Jan 26, 2014 2:41 pm

Sorry, everyone but how can we calculate the yaw/pitch/roll from a direction vector?
My name is arkdemon and I don't approve this message :D
User avatar
arkdemon
 
Posts: 90
Joined: Sat Jan 18, 2014 12:38 pm

Re: How to make an object rotate in yaw, pitch or roll

Postby Julio Jerez » Sun Jan 26, 2014 3:26 pm

setting the angular velocity is a very wrong way for changing the angle of a body.
what are you doing.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: How to make an object rotate in yaw, pitch or roll

Postby arkdemon » Sun Jan 26, 2014 3:35 pm

I am trying to rotate an object. Changing torque did not change anything but now it works (I put higher value). How can I make an object face another one?
Thank you
My name is arkdemon and I don't approve this message :D
User avatar
arkdemon
 
Posts: 90
Joined: Sat Jan 18, 2014 12:38 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron