Hit Box Calculation Issue [SOLVED]

Started by NorthWestTrees on

Topic category: Troubleshooting, bugs, and solutions

Hit Box Calculation Issue [SOLVED]
Thu, 09/05/2019 - 15:19 (edited)

I have tested this a few times to make sure it was not the way I was typing it... I can't post another issue tick as I submitted a feature request not too long a got so I will need to post this here.

 

If you set the block dimensions for any given block with a custom model to ( [Y Min = 0.25] and [Y Max = 0.5] ) its the same results for the hitbox set to ([Y Min - 0.5] and [Y Max = 0.25] )

 

The hitbox should be 4 pixels down from the top not 8 pixels down from the top. If you need to workspace let me know I can provide it. I thought I would just point that out as it seems like it's not meant to do that lol.

Edited by NorthWestTrees on Thu, 09/05/2019 - 15:19
Yes. There are no errors…
Thu, 08/15/2019 - 21:15

Yes. There are no errors when running the test environment or compiling the mod.

The download to the mod is below I have also added some screenshots of some settings of both states one is the settings and the other set is the hitbox.

Workspace download is below.
https://www.mediafire.com/file/98w5ryb3ksa56eh/workspace.zip/file

 

Block 1 (Y Min = 0.25 / Y Max = 0.5) [ISSUE BLOCK]

Settings for block 1

Hitbox for block 1

 

Block 2 (Y Min = 0.5 / Y Max = 0.25)

Settings for block 2

Hitbox for block 2

It is kinda a funny bug…
Thu, 08/15/2019 - 21:19

It is kinda a funny bug really, it's so left field when you think about value as something as simple as 4 pixels is the same value as the opposite 4 pixels. I mean I find it funny, worse things could have happened XD

Bridge block 1 (upper-middle…
Fri, 08/16/2019 - 08:41

Bridge block 1 (upper-middle bridge), the one you said has the issue would have min Y coordinate set to 0.5 and upper Y coordinate set to 0.75. This is how it works normally. I drew this quick image to show you how this works:

Coordinates

Thank you for taking the…
Thu, 09/05/2019 - 04:13

Thank you for taking the time to let me know, I think may have been overtired. YouTube and personal life have been waring me down a bit. Also I thank you for making the image, I am a very visual learner when it comes to learning so it helps see where I made the mistake :)