Object passing through terrain???
+2
oioioi
praveencastelino
6 posters
Object passing through terrain???
I'm new to SIO2 engine and Blender(I'm using blender version 2.48. It seems like setting the physics property in this version is little different than the older version of blender). I created a terrain and a cube using the blender and incorporated the physics as suggested in the tutorial 06. The cube object was set as Actor->Rigid-Body while the terrain was set as Static->Actor. Both the cube object and camera were passing through the terrain. Could not fix this problem . So, I modified the tutorial 06 and created one more cube in it and added physics to it and ran the exported file in Simulator. This worked for me and cube was bouncing on the terrain . So, the problem lies in the terrain. Can anybody tell me how to make terrain as the Static Mesh? Thanks in advance.
praveencastelino- Posts : 7
Join date : 2009-05-20
Re: Object passing through terrain???
how to make static:
If you use rigid body you also have to select bounds type to make it work properly
If you use rigid body you also have to select bounds type to make it work properly
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: Object passing through terrain???
If you search for 'floor' and 'ground', you'll find lots of answers...
On top of bounds, you might also want to set collision margins by adding a customer property named 'margin' for that mesh and a value of 0.040 (default bullet margin) in blender or adding in bullet directly in your code for that rigid body...
http://forum.sio2interactive.com/about-the-sdk-f1/objects-falling-through-t179.htm
On top of bounds, you might also want to set collision margins by adding a customer property named 'margin' for that mesh and a value of 0.040 (default bullet margin) in blender or adding in bullet directly in your code for that rigid body...
http://forum.sio2interactive.com/about-the-sdk-f1/objects-falling-through-t179.htm
Francescu- Posts : 136
Join date : 2009-03-18
Re: Object passing through terrain???
Don't forget to make sure you are exporting tri's instead of quads (ctrl - T in edit mode). Also, Ctrl-A and choose 'Scale and Rotation to ObjData'. Center New in the Editing -> Mesh panel too.
uprise78- Posts : 228
Join date : 2008-10-31
Re: Object passing through terrain???
Thanks guyz..... setting the margin property and the 'Scale and Rotation to ObData' worked for me...
praveencastelino- Posts : 7
Join date : 2009-05-20
Re: Object passing through terrain???
For what it's worth, I'm finding significant sensitivity in Bullet to the "-fno-regmove" flag... compiling without it, I get errors in collision and restitution. I recommend making it a default setting for device builds.
--yarri
--yarri
yarri- Posts : 81
Join date : 2009-04-10
Similar topics
» Passing Through Static Object (Beating my iPod seems to help)
» Terrain Clamping
» Camera or Object
» physics object inside another physics object
» Physic Object
» Terrain Clamping
» Camera or Object
» physics object inside another physics object
» Physic Object
Permissions in this forum:
You cannot reply to topics in this forum