yonatanCohenShevetTzhala / sketchyphysics

Automatically exported from code.google.com/p/sketchyphysics
0 stars 0 forks source link

some objects going through staticmesh, others don't #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I wanted to create a fireworks tutorial (and to celebrate sketchyphysics on
Mac) with simple steps (see file enclosed).

Balls (all the same, except size) go through the air and fall down to the
staticmesh.
2 of them go through the staticmesh while 2 others stay on it.
Please test it on other platforms and other Mac computers (I'm on Intel
first generation Macbook) to see if the same happens.

v3 on sketchup7, Mac 10.4.11, Macbook Intel 2006.

I'll create another ticket for spring problem

Original issue reported on code.google.com by philouma...@gmail.com on 19 Mar 2009 at 2:05

GoogleCodeExporter commented 8 years ago
Aargh, I forgot the file. Here it is

Original comment by philouma...@gmail.com on 19 Mar 2009 at 2:07

Attachments:

GoogleCodeExporter commented 8 years ago
there's no spring probem afterward

Original comment by philouma...@gmail.com on 19 Mar 2009 at 2:25

GoogleCodeExporter commented 8 years ago
I've experienced this problem, too. I've decided that there is probably one of 
three problems:
1. Because collision geometry is "elastic" (a tower made of blocks will squish 
into each other), falling objects may obtain enough momentum to completely 
penetrate a solid or static mesh.
2. Static meshes only collide on the "front" side of the polygon's face, so 
make sure that your mesh's faces are oriented up.
3. Because SketchyPhysics runs in frames, perhaps objects only test for 
collision at their discrete positions while moving, thus registering a 
collision depends on where an object happens to be. I know if I shoot a wall 
with a high-speed emitter gun, sometimes the projectiles go right through it, 
but if I move towards it or away from it slightly, they collide. You might 
consider adding several layers of meshed to increase the chance that high-speed 
projectiles will register the collision.
Hope this helps!

Original comment by linemo...@gmail.com on 8 Mar 2011 at 1:12