Drachenbauer Posted August 12, 2019 Posted August 12, 2019 Hello I try to set ithe EyeHeight for my eintties. And if i use F3+B to show the collision-boxes of my entities, it always shows the red square and the blue beam just a little bit below the top of the collision-box. It seams like, it is not, where my code places the EyeHeight of the entity. For sample: @Override public float getEyeHeight(Pose pose) { return this.getSize(pose).height * 0.5f; } I´m pretty sure, this will place the EyeHeight in the middle of the collision-box-hight (for most of my Angry Birds characters, this is where the eyes are located on the texture), But the red square is not located in this hight. Why this happens? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.