Bones-attachments-hitbox_fakes?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
ThommyE

Bones-attachments-hitbox_fakes?

Post by ThommyE »

hi there,
i wanted to use irrlicht 4 a small shooting game but i need hitboxes like in hl-engine, or at least something equal.
i thought of a workaround and i wanted to ask if its possible to do this (since i'm not programming i cant tell but i have to know if its possible to start anyway =) )

the featruelist says you can attach models to bones.
so i have my actual modell, boned an animated, and i have a cuple of hitbox-models.
the bounding box of the actual modell is irrelevant and wont be of any use (at least not 4 the damage-part)
each hitboxmodel just contains enough vertices to create a fitting bounding box in irrlicht (if its possible i dont want to add faces but it wont really matter).
each bounding-box modell will be attached to a seperate bone. boundingboxes will be invisible anyway.

the thing i'm not sure about is the rotation of the bounding boxes.
will the bounding-box and the hitbox-modells be roated within the bones or will the bounding box change size and volume to fit the rotated hitbox-model?

if you have problems imagin the problem i'll draw a small pic to explain,just tell me if your'e in need of visual inspiration.

-i hope this is a suited solution 4 my prurpose.I dont think it will waste too much recources but correct me if i'm wrong.(at least i hope it doesnt, cause i know engines which have terrible problems attaching objects to bones)

bdw:are there any other bounding-shapes like shperes or cones?

big thx in advance
ps:not shure if this should've been posted in beginners question. it wont fit neither beginner questions nor open discussion really well :?
and I'm sry about any mistakes in the text
Post Reply