Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 7:38 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Sep 12, 2008 11:58 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
The function raydium_ode_object_get_rot returns the angles in radians
However the function raydium_ode_object_set_rot internally accepts also radians, BUT in the doc it tells specifically it's accepting degrees.

Which is wrong?


Top
 Profile  
 
PostPosted: Fri Sep 12, 2008 1:35 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Looking at the code, rad to degree conversion is commented.

I think it's better to use radian, always.

Probably need to update the doc.

Have a nice day.
Ouille


Top
 Profile  
 
PostPosted: Fri Sep 12, 2008 1:44 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
But only internaly, more naturaly are degrees.

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
PostPosted: Fri Sep 12, 2008 1:48 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Degrees are a nightmare.

It's more natural ti use degree, i'am agree.

But as many function accept / return radian, you are always converting from degree to radians.

I prefer to have all in radian, and not handling this convertion all the time.

An other way is to have all angles in degree (with some drawback for angular velicty for example), but in this case it's for all the engine not for some primitive.

Have a nice day.
Ouille


Top
 Profile  
 
PostPosted: Fri Sep 12, 2008 6:49 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
OK - radians, but then is needed add a few new functions to the math raydium, like deg to rad and rad to deg conversion and fix documentation too.

_________________
[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64
[SW] Blide Plus, BlitzMax, Delphi, C++
[3D] Leadwerks 2.1, C4, TGE 1.5.2, Beyond Virtual


Top
 Profile  
 
PostPosted: Sat Sep 13, 2008 9:39 am 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

I'll add them, Wait until i finish my build problems.

Have a nice day
Ouille.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group