Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet Vita    [LBPV] Help!
#1

hitbox troubles!

Archive: 5 posts


Hi all,
While working on my top-down shooter, I came across the following problem.
I have a gun, which emits bullets (WOW, logic these days ). Those bullets are rather small, in case that matters. The bullets are fired in a thin layer. The enemies have a thin layer attached on their "shoulders", on which is placed an impact sensor which reacts to the tag on the bullet.
The problem is, about half of the bullets pass straight through the hitbox of the enemy.They should be destroyed on impact, but I see some of them passing through the target. others however do hit the hitbox. The enemy should drop in 4 shots, but some of the bullets just seem to pass through, no matter what.
Since ammo will be expensive in the level, it will be important that every hit is a real hit.
Does anyone have a solution for this problem?
2014-06-19 19:58:00

Author:
wolfbrother117
Posts: 150


I ran into a problem similar to this in one of my lvls. Basically it depends how fast the bullet is traveling. The faster the bullet the less likely it will destroy on contact. Try slowing them down a little, or making them bigger. Maybe you can just make the bullet longer.2014-06-19 21:36:00

Author:
Zohnar
Posts: 30


I'm going to say it's because the bullets are moving too fast. Try slowing them down a little and see if that helps.2014-06-19 22:34:00

Author:
ShadowArcticWolf
Posts: 131


Yes, I had a bad problem with this and had to do a lot of experimenting with it. As mentioned, one of the factors of why this happens is from the speed of the bullet, try slowing it down a little. Some other things that may help is to especially, if you can, use invisible material instead of sticker panel or hologram. Physical materials work better. Also, you can try making the Bullet/hitbox longer/bigger. So Speed, physical properties and size can play a role in this, good luck!2014-06-26 01:02:00

Author:
airide101
Posts: 141


I indeed thought of the bullet velocity, and I've already adjusted it's velocity to 20. I'll just try to make the bullets bigger wih invisible material.
Thanks for your help, and I'll give you guys an update.

Edit: Yup, now they're dropping like flies. Also, my smg bullets had the wrong color, making them completely harmless against the zombies, haha!
The big deal was indeed the size of the bullets. I made the bullet hitbox larger with invisible material, and they are perfectly registered. Thanks!
-Frank
2014-08-01 19:27:00

Author:
wolfbrother117
Posts: 150


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.