Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to achieve entities on predefined paths? #346

Open
AndrewRayCode opened this issue Jul 4, 2019 · 0 comments
Open

Question: How to achieve entities on predefined paths? #346

AndrewRayCode opened this issue Jul 4, 2019 · 0 comments

Comments

@AndrewRayCode
Copy link
Contributor

I have a system in my game where I can define a simple path for an entity to take, like moving through a circle in a loop. This entity's physics positions are updated every frame to snap to the right path position. An issue is if my player gets trapped between the object on the path and a wall, the object will just continue to move and eventually fully squish the player.

Is there a solution to this, where I could make the object move along a path but not be able to continue through solid objects?

If it's relevant, I'm basically forcing the path position right now, as in

position = [sin(time), cos(time)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant