Efficient loading physics information in COLLADA

vagr
Posts: 13
Joined: Tue Mar 18, 2008 1:08 am

Efficient loading physics information in COLLADA

Post by vagr »

Hi all,

I am trying to load all instance_rigid_body and instance_rigid_constraint and then assemble them together for our engine format. We have to load from <physics_scene> because there is possible of overriding information between instance_rigid_body and rigid_body (5-15 in spec)

Here is the pipeline of parsing physics scene:

<instance_rigid_constraint> + physics_mode url ==> <rigid_constraint> in <physics_model> ==> <rigid_body> in <physics_model> ==> have to search <instance_rigid_body> in <physics_scene> for that?

It seems that we have to do some search to retrieve <instance_rigid_body> information if we start from <instance_rigid_constraints>. Is there any better way to load them?

Another question is under same <instance_physics_model> could we have multiple instance_rigid_body linked to one rigid_body in <physics_model>?
vagr
Posts: 13
Joined: Tue Mar 18, 2008 1:08 am

Re: Efficient loading physics information in COLLADA

Post by vagr »

sry, put it at wrong place. Could you help me to delete it?

Thanks