Object flying off the cliff

Posts that don't fit into other categories.
R0Zen
Posts: 2
Joined: Sun Apr 29, 2018 5:16 pm

Object flying off the cliff

Postby R0Zen » Sun Apr 29, 2018 5:23 pm

Ok I'm to do find the solution for this for some time now.
I have a capsule (player object) that moves on lines (the level map).
I'm using the applyForce function to move the object on the X axis only (left and right).
the issue is when I'm on cliffs and hard edges on the map the objects is flying off it and not sliding down.

Image

in green you can see what I'm trying to do and in blue is what happens.

there is a function that will make the player stay on line when it moves?

R0Zen
Posts: 2
Joined: Sun Apr 29, 2018 5:16 pm

Re: Object flying off the cliff

Postby R0Zen » Tue May 08, 2018 2:13 pm

Hi?

zoom
Posts: 145
Joined: Sun Mar 17, 2013 3:57 pm
Location: Stockholm, Sweden
Contact:

Re: Object flying off the cliff

Postby zoom » Wed May 09, 2018 7:55 am

Well, dyn4j is simulating pyshics and that's how physics work :-)

If you want to position things and ignore the physics in the physics engine you can find some approaches in this thread:
viewtopic.php?t=297


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest