Raydium 3D Game Engine

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

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jun 19, 2006 1:25 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Xfennec, can you explain a bit which is the use of the new joint?
I have read the diffs but i don't get it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 2:47 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2591
Location: gnniiiii (Scrat)
Ho ! This is simple : it's an ugly hack ;)

With the provious code, it was hard to attach an element (with a joint) to the "unmovable world", since this world is in facts the objet "GLOBAL" with its element "ground". But ground is a satic element (RAYDIUM_ODE_STATIC) and it's not possible to attach a joint to a static element.

So I added a faked (out-of-bounds) element with a NULL body, since NULL means "static world" for an ODE joint (see official doc), identified be the RAYDIUM_ODE_JOINT_FIXED constant.

There will be an example of such use in the shader demo (I've added this feature since I was needing it for this demo).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 19, 2006 4:14 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
ok, understood


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 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