Unusual collision behaviour

View previous topic View next topic Go down

Unusual collision behaviour

Post  Fish on Thu Aug 20, 2009 9:46 am

Hi,

I am having some unusual behavior with my collision.

I have a collision mesh (actor) with a object (dynamic actor) moving over this mesh using setLinearVelocity().

This works fine until the object hits the edge of any triangle in the mesh which seem to make the player 'jump' as if it has hit something at this edge.

I have used different scales and have tried one big mesh as well as separate meshs with the same result.

Has anyone else come across similar behavior?

Thanks,
Fish

Fish

Posts : 9
Join date : 2009-04-30

View user profile

Back to top Go down

Re: Unusual collision behaviour

Post  sio2interactive on Thu Aug 20, 2009 11:48 am

It can be caused by using the optimizer on a static triangle mesh... the optimizer will degenerate triangles and that can cause the physic to behave strangely because of that.

_________________
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: Unusual collision behaviour

Post  Fish on Mon Aug 24, 2009 6:51 am

Alas it wasn't that.

I have reduced the problem by x100 the scale. setting the margin to 0.2f and changing the bound to sphere.

Fish

Posts : 9
Join date : 2009-04-30

View user profile

Back to top Go down

Re: Unusual collision behaviour

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