Page 1 of 3

HitBox resource help.

Posted: Fri Jan 12, 2018 6:49 am
by LoLJester
Hello,

I need help with this resource on GG's website: http://www.garagegames.com/community/re ... view/6538/ and the ported one on GitHub: https://github.com/Azaezel/Torque3D/tre ... boxes_rev2

Only problem that I have with this resource is that, although the hitbox is recognized on preload, the rayCast won't hit (during runtime) a shape exported to COLLADA that has a "-1" (or any) level of detail mesh attached to an animated bone.
My hitbox is named HBa-1 and weighed to an animated head bone. I chose the "-1" level of detail so that the hitbox remains invisible during the game.
I know about the stock hitbox feature that uses the shape's divided bounding box as hitboxes, but it is not useful for big enemies that have one or two small vulnerable spots.
I use Unwrap3D to export to DAE or DTS.

Re: HitBox resource help.

Posted: Mon Jan 15, 2018 3:00 pm
by Happenstance
Does raycast return a hit if you don't use a detail level? Does the shape editor show all of the hitboxes when you inspect the model?

Re: HitBox resource help.

Posted: Mon Jan 15, 2018 3:20 pm
by Duion
Are you planning on open sourcing the implementation? I'm really interested in having it in the engine as well.

Re: HitBox resource help.

Posted: Tue Jan 16, 2018 12:24 am
by Azaezel
Have you accounted for the castRayEA defintiion, https://github.com/Azaezel/Torque3D/blo ... n.cpp#L255 ? Animated bone attachments should work... half the reason I chose to leave that as a visible LOD and just set the things to transparent our end was so it was easy to change the material back and check that 'yeah, these things are indeed moving, and yeah, that hit did hit...

Re: HitBox resource help.

Posted: Wed Jan 17, 2018 10:06 pm
by LoLJester
@
User avatar
Happenstance
: How do you mean? The function requires a detail level. Zero (0) for visible meshes and one (1) for the collision and hitbox meshes.

@
User avatar
Azaezel
: Yes I did that. The hitbox convex shape is there and gets animated... it is just not hit by the rayCast. If I detach the same hitbox shape from the bone, the rayCastEA hits.

@
User avatar
Duion
: To whom is that question directed to?

Re: HitBox resource help.

Posted: Wed Jan 17, 2018 10:32 pm
by Azaezel
Will do some more digging around our end.

Re: HitBox resource help.

Posted: Thu Jan 18, 2018 1:04 am
by Duion
LoLJester wrote:@
User avatar
Duion
: To whom is that question directed to?

You of course.

Re: HitBox resource help.

Posted: Thu Jan 18, 2018 9:30 pm
by LoLJester
It is already open sourced. See the links provided. This is not my resource. It's a resource I'm using from GarageGames website. Also, the second link is a port to T3D MIT.

Re: HitBox resource help.

Posted: Fri Jan 19, 2018 1:41 am
by Duion
So does it work or not?

Re: HitBox resource help.

Posted: Fri Jan 19, 2018 3:16 am
by LoLJester
That's what we're trying to figure out. It's not working for me.