Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Can't get collision to work with animated character #443

Answered by slmjkdbtl
whuang-blackline asked this question in Q&A
Discussion options

You must be logged in to vote

The mechanism to prevent solid objects moving into each other is inside .move() from pos() component (it needs to know the velocity to prevent tunneling), if you're using directly assigning .pos = it won't stop them from moving into each other.

If you want to directly assign .pos you can also call .pushOutAll() every frame to push the object out of every other solid objects, but that won't prevent tunneling when it's moving in high speed.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@whuang-blackline
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@whuang-blackline
Comment options

Answer selected by whuang-blackline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants