Jump to content

Custom entity not rendered when behind the player [1.19.2]


Recommended Posts

Posted

Hey. I created by custom bus entity, so it's narrow (3 blocks) and long (11 blocks). The problem is that if the bounding box is 3x3x3 then when the bus center point/bounding box is behind the player but the player is still inside or next to the bus facing the same direction, then the model is not rendered even though the front end should still be visible.

Is there any other way to force the model to be rendered rather than changing the bounding box to 11x11x3 (which causes a lot more other issues)?

It is possible to create a custom AABB of course but is it possible to rotate it (the AABB) 15 degrees for example?

Thanks.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.