Jump to content

Get Absolute Height of Creature


KurodaAkira

Recommended Posts

My problem is probably really simple, but I need the model height of an entity/creature.

BoundingBoxes usually are smaller than the creature actually is (for example the chicken bounding box does not contain most of it's head - or the Squid's BB does not contain it's tentacles).

I tried to find a method which can give this to me but had no success. Maybe one of you can help me out.

 

Thanks in advance

Link to comment
Share on other sites

There is no way to know.

 

For example, with squids, if you included the tentacles, would that be while they are close in against each other, or when they're spread out? Both? Animated along with the visuals?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

.In a game like Minecraft, the mismatch between the visuals and the actual bounding boxes is part of the charm of the game. There are no exact hit boxes, and parts of models can overlap the nearby blocks or other entities. It is not meant to be super realistic.

 

If you really have a need for this, then for the vanilla entities you'd have to figure out the mismatch yourself and perhaps handle cases like Draco mentions where you know the model might be changing size. For example, a child entity is scaled down.

 

Basically I think for known entities it is possible to get pretty close, but just takes a bit of work and trial and error to get it the way you like it. But I don't think there is a generic way (like if you want it to work for other mod's entities). Or to be more precise, it would be a very advanced thing to do to inspect the models and figure it out generically.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

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.