Laws of Physics Misbehaving
2 posters
Laws of Physics Misbehaving
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.
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
Re: Laws of Physics Misbehaving
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,
However, your workflow seems to be correct... send me your .blend file so I can have a look.
Cheers,
Re: Laws of Physics Misbehaving
I've sent the model to sio2interactive@gmail.com. Thanks.
vang0330- Posts : 5
Join date : 2009-02-19
Re: Laws of Physics Misbehaving
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
2. You didn't reset the transformation of your box (CTRL+A)
Once again there's nothing wrong with SIO2
Re: Laws of Physics Misbehaving
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
Similar topics
» physics object inside another physics object
» Physics Issue - 1.35 and 1.4
» Physics in 1.3.1
» Physics Constraints
» Speeding Up Physics
» Physics Issue - 1.35 and 1.4
» Physics in 1.3.1
» Physics Constraints
» Speeding Up Physics
Permissions in this forum:
You cannot reply to topics in this forum
|
|