Drachenbauer Posted July 28, 2019 Posted July 28, 2019 (edited) Hello Most of my Angry Birds entities are smaller than one block. But i noticed, that i cannot place a Block directly above them (to create an one block high hone around them) It seams like they cannot enter an one block high hole in a wall. How can i change the size of their collision-box to fit their body-size? Edited July 29, 2019 by Drachenbauer Quote
Drachenbauer Posted August 2, 2019 Author Posted August 2, 2019 Now i found a way to add the size in the registration-lines, like at the munitions. But now i noticed, that my entities get hutr, if swimming in water. How to fix this? to see the size thing at my entities, look in my repository:AngryBirdsMod on Github in the main-class "AngryBirds" in the entity-registry-event. Quote
salvestrom Posted August 2, 2019 Posted August 2, 2019 (edited) 3 hours ago, Drachenbauer said: Now i found a way to add the size in the registration-lines, like at the munitions. But now i noticed, that my entities get hutr, if swimming in water. How to fix this? to see the size thing at my entities, look in my repository:AngryBirdsMod on Github in the main-class "AngryBirds" in the entity-registry-event. Drowning in water is determined by the mobs "eye height" which can be set independently of the collision box. Turn on collision boxes in game and you should see a red square either within or above the collision box: this is the mobs eye height. Edit: looking at your source code, it seems you have mob eye height set at as little as a quarter of the mob height. Edited August 2, 2019 by salvestrom Quote
Drachenbauer Posted August 8, 2019 Author Posted August 8, 2019 (edited) most of my mobs are a half block high and have their eyes in the middle of their front. So i had to set the eyehight as a quater of a block-hight to fit with the eyes on the texture. (i thaught, the value for eyehight is calculated from 1 as block-hight). If i show collision-boxes, i see a red frame and a blue beam, wich, i think, show the eye-hight. but they are located just a little below the top of the collision-box. The hight of theese markers does not change, if i change the value of eyehight How is the eyeHight-value calculated actually? How do i find the right values to move this to the hight, where the eyes are located on the texture? And is there a way to change, how deep they sink into the water while swimming? Here are two pictures of an Angry Birds toons episode, where you can see the birds swimming in the sea while a beach-day: Angry Birds swimming scene 1 Angry Birds swimming scene 2 They float high on the water-surface, just like light wight beach-balls or balloons, filled with air. I wand to realize this effect with my Angry Birds-mobs, too. Actually they sink too deep into the water most of them sink about the half of their hight, the smallest ones sink compleetely below the surface (similar to ice, that floats in water). I want to reach, that only about 1/8 of their hight is actually below the water surface, while they swim (no matter, how big or small they are). Edited August 8, 2019 by Drachenbauer 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.