Laws of Physics Misbehaving

View previous topic View next topic Go down

Laws of Physics Misbehaving

Post  vang0330 on Sat Feb 28, 2009 12:19 pm

Has anyone been able to implement the Physics engine successfully aside from the tutorial 6? All I'm doing is taking the source code for tutorial 6 and using my blender models. My models include a box (cube w/o top face) and a ball (sphere) to be dropped in the box. In blender, the physics work fine and the ball bounces inside the box. In the IPhone, the ball drops through the box.

I've looked through all the messages regarding physics in the forum and yet still have no success. A summary of my configuration and other member's suggestions are:

1.) Box physics configuration: Static, Actor enabled, Bounds enabled, bounds type is Triangle Mesh, advanced settings for margin is 0.06 (tried various margin settings)

2.) Ball physics configuration: Rigid Body, Actor enabled, Bounds enabled, bounds type is Sphere (I've also tried Triangle Mesh), advanced settings for margin is 0.06 (tried various margin settings)

*Note: I've also tried declaring my own margin parameter.

3.) All mesh objects selected together and centered (should this be Center New, or Center Cursor? I tried both).

4.) All objects selected and perform CTRL+A and "Visual Transforms to Objects Loc/Scale/Rot." Also tried other features under the CTRL+A.

5.) Tried changing sio2PhysicRender( sio -> _SIO2physic, sio2 -> _SIO2window -> d_time, 0);
to sio2PhysicRender( sio -> _SIO2physic, sio2 -> _SIO2window -> d_time, 2);

Am I missing a step or is something done incorrectly in my physics implementation procedure?

This is all done with the exporter (v1.3.4) downloaded from the SVN as of 2/28/2009. Do I need to download all the bullet sources as well? How do I go about this efficiently as I am new to the Mac OS X environment.

Thanks.

vang0330

Posts : 5
Join date : 2009-02-19

View user profile

Back to top Go down

Re: Laws of Physics Misbehaving

Post  sio2interactive on Sat Feb 28, 2009 4:01 pm

You better use 1.3.3, this is the stable version... do not rely on 1.3.4 as it is a development version and things can change drastically from one day to the other.

However, your workflow seems to be correct... send me your .blend file so I can have a look.

Cheers,

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

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Laws of Physics Misbehaving

Post  vang0330 on Sat Feb 28, 2009 4:55 pm

I've sent the model to sio2interactive@gmail.com. Thanks.

vang0330

Posts : 5
Join date : 2009-02-19

View user profile

Back to top Go down

Re: Laws of Physics Misbehaving

Post  sio2interactive on Sat Feb 28, 2009 6:09 pm

1. Your normals are not well aligned, "recalculate normals inside"

2. You didn't reset the transformation of your box (CTRL+A)

Once again there's nothing wrong with SIO2 Wink

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

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Laws of Physics Misbehaving

Post  vang0330 on Sun Mar 01, 2009 10:03 am

The fix was export, then export with normals and update. I had been exporting with normals on the first export. Thanks.

vang0330

Posts : 5
Join date : 2009-02-19

View user profile

Back to top Go down

Re: Laws of Physics Misbehaving

Post  Sponsored content


Sponsored content


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