You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Physics2D.Net
Hi all,
I am having a problem and I wonder if anyone has any experience of
this and better still knows how to resolve it.
I have a body which is a floor and a body which is a square.
the square has rotation off so its face is always exactly adjacent to
the floor.
I also have friction for both bodies set to zero.
When I apply a force to push the box along the floor every so often it
snags, as if it is catching something. I have experimented with
VertexHelper.Subdivide, to the point of a crazy amount of detail (for
testing) but the problem persists. I expect it is something simple I
am missing.
Any input is much appreciated.
Thanks
Nick
Nick
unread,
Mar 11, 2011, 4:25:02 AM3/11/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Physics2D.Net
Hi all,
After playing with various solutions I have seen suggested for similar
problems I found a pretty neat solution with added benefits.
When moving to the right, I set the player body angle to -0.1f and
when moving left to 0.1f.
In effect this has a very small scale speed boat effect meaning
physics wise the object slides smoothly across the floor surface.
An added benefit to this is it gives a little bit of life to the
player movement, one could of instance apply more “tilt” dependant on
velocity so as they player runs faster they lean back more.
Hope this helps anyone else having this common issue.