Damn it. I only used DegreesToRadians in std::cout, not in actual
makeRotate call! Thanks! :)

2012/12/5 michael kapelko <[email protected]>

> I apply it on key presses only.
>
> I have code like that on key press:
>
> static float angle = 0;
> angle += 0.1;
> quat->makeRotate(angle, Vec3(1, 0, 0));
>
> 2012/12/5 Ulrich Hertlein <[email protected]>
>
>> On 5/12/12 15:36, michael kapelko wrote:
>> > Hi. I can't understand what units (degrees? radians?) Quat::makeRotate
>> accepts.
>> > I tried to pass degrees, and it wasn't it (with small angle increase
>> there was large
>> > rotation).
>> > I tried to pass radians with the help of DegreesToRadians, and then
>> it's not it, too (when
>> > angle was going from 1 to 14, the screen rotated 3 times).
>> > So what it is then?
>>
>> Radians.
>> Check your assumptions - depending on your usage, applying a Quat(14deg)
>> might rotate the
>> object 14deg every frame!
>>
>> /ulrich
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to