Page 1 of 1

colision problems

Posted: Mon Mar 30, 2015 9:59 pm
by pesant19
I had a problem with my golf game. I use the gettingstartedDemo code to help me. I replace the playground by my fbx golf hole that i Made with blender. The problems is that some of the entity cross over my terrain. I don't know why because some didn't cross. I try to understand the documentation about collision but I'm not very good in english. Anyone have a solution for this because it's kind of a problem in golf game if the ball just dissaperes. :cry: :cry: :roll:

Re: colision problems

Posted: Mon Mar 30, 2015 10:10 pm
by Norbo
It sounds like either the graphics do not match the physics or the mesh has inconsistent winding with a one sided collision mode.

If the graphics aren't matching, make sure the graphical transforms are the same as the physics transforms for the mesh.

To eliminate winding as a potential cause, set the StaticMesh's Sidedness to DoubleSided.

If you still see tunneling of fast objects, it may be related to discrete collision detection. To solve this, you can either use a shorter Space.TimeStepSettings.TimeStepDuration, or set entity.PositionUpdateMode = PositionUpdateMode.Continuous.

Re: colision problems

Posted: Tue Mar 31, 2015 12:04 am
by pesant19
Thank you, I think the probleme was the timeSet It work.