Skip to content

For jumping is there any way to get through the BoundingShape and stands on it when falling? #1063

Answered by AlmasB
chengenzhao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

CollidableComponent is only used for detecting / notifying collisions, but doesn't actually provide any rigid body physics (assuming you are using the PhysicsComponent / world combination).

There is no built-in solution for this, so a custom approach will probably be needed. You could detect the collision side by tracking previous player position and

  1. if it's ⏫ then let the player pass
  2. if it's ⏬ then set player's Y so it's on the platform and block the player's movement in Y axis.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chengenzhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants