Blender 2.49 Physics.

View previous topic View next topic Go down

Blender 2.49 Physics.

Post  evrenbingol on Thu Jul 16, 2009 9:11 am

Game Logic (physics) Buttons in blender is a little different> Does the exporter support 2.49?
Or should I downgrade blender.


sio2ResourceBindAllPhysicObjects( sio2->_SIO2resource,sio2->_SIO2physic ); throws an exception
PS: I added the physics frame listener in EAGLView.mm

_SIO2physic->_btSoftRigidDynamicsWorld->addRigidBody( _SIO2object->_btRigidBody ); in sio_physic.cc line number 374.

I checked the object and it is a Plane

I have tried all possible combinations ( as in rigid, static, soft ) for the plane but all crashed.

I am guessing there might be an exporter issue with blender 2.49? any ideas.

Also Thanks for the fast replies.

evrenbingol

Posts: 7
Join date: 2009-07-12

View user profile

Back to top Go down

Re: Blender 2.49 Physics.

Post  sio2interactive on Thu Jul 16, 2009 9:44 am

The exporter fully support 2.49 (that's whats the version Im using too)

When you export physic object make sure that you are adding them in the following sequence:

1. Make sure that you have a physic world created on sio2->_SIO2physic

2.

Code:


...
...
      sio2ResourceBindAllInstances( sio2->_SIO2resource );

      
      sio2ResourceBindAllMatrix( sio2->_SIO2resource );

      sio2ResourceBindAllPhysicObjects( sio2->_SIO2resource, sio2->_SIO2physic );

      sio2ResourceGenId( sio2->_SIO2resource );
...
...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com

sio2interactive

Posts: 1526
Join date: 2008-08-26
Age: 34
Location: Shanghai

View user profile http://sio2interactive.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum