HitBox resource help.

Expanding and utilizing the engine via C++.
24 posts Page 1 of 3
LoLJester
Posts: 64
Joined: Thu Aug 13, 2015 5:58 pm
 
by LoLJester » Fri Jan 12, 2018 6:49 am
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.
Happenstance
Posts: 31
Joined: Sat Apr 11, 2015 9:08 pm
by Happenstance » Mon Jan 15, 2018 3:00 pm
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?
Duion
Posts: 957
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon Jan 15, 2018 3:20 pm
Are you planning on open sourcing the implementation? I'm really interested in having it in the engine as well.
Azaezel
Posts: 395
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Tue Jan 16, 2018 12:24 am
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...
LoLJester
Posts: 64
Joined: Thu Aug 13, 2015 5:58 pm
 
by LoLJester » Wed Jan 17, 2018 10:06 pm
@
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?
Azaezel
Posts: 395
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Wed Jan 17, 2018 10:32 pm
Will do some more digging around our end.
Duion
Posts: 957
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Thu Jan 18, 2018 1:04 am
LoLJester wrote:@
User avatar
Duion
: To whom is that question directed to?

You of course.
LoLJester
Posts: 64
Joined: Thu Aug 13, 2015 5:58 pm
 
by LoLJester » Thu Jan 18, 2018 9:30 pm
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.
Duion
Posts: 957
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Fri Jan 19, 2018 1:41 am
So does it work or not?
LoLJester
Posts: 64
Joined: Thu Aug 13, 2015 5:58 pm
 
by LoLJester » Fri Jan 19, 2018 3:16 am
That's what we're trying to figure out. It's not working for me.
24 posts Page 1 of 3

Who is online

Users browsing this forum: No registered users and 1 guest