Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Mon Oct 21, 2019 1:01 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: applied forces
PostPosted: Mon Jun 30, 2008 11:29 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Can i get the sum of all forces applied to an object?
For example:
Imagine a wood box compound of box pieces. Now you put a heavy box over it. The wood box suffer a certain force but it still remains as is. If you put a lot of heavy boxes over it, the wood box should break but it doesn't happen in Raydium/ODE.
So if i get the sum of all forces applied to a certain object i could check if it is bigger than a value and if so then the object can break or explode or something.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 30, 2008 8:06 pm 
Offline

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

You have to get this info directly from ode body.

If my memory is right you have such field in body structure.

it's probably facc field (force accumulator).

I never test it further.

Have a nice day
Ouille.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 8:39 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I'll try. However ODE people have told me that force accumulator won't help me... Example.
One car (object) into a mechanical press (2 objects at both sides of the car). When the press is started the 2 pieces press against the car. If each piece apply a force of 100 raydium units as they are oppossite the resulting force is 0 (100-100).
They told something about checking dJointSetFeedback on each contact joint ???


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 12:21 pm 
Offline

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

Exact but only if you use joint.

I give the answer for the standalone box. But you are probably right, other box force are probably nullified by ground force. So after iteration facc will probably be 0.

So .... i don't know. Use dummy joint, with soft constraints to get joint force feedback?

Need perhaps to go deeper in ode stepper ???

:? sorry :?

Have a nice day.


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

All times are UTC


Who is online

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