#How are these types of hitboxes made?

1 messages · Page 1 of 1 (latest)

untold wraith
#

(i think they're using attachments, but how would i detect a collision with attachments)
The hitboxes im talking about are the lines following the weapon, leaving a trail behind it

granite stirrup
#

Essentially you just raycast from where the attachment was to where it is now

untold wraith
#

i see

#

and detect what hit

#

ok 👍

tawdry ether
# untold wraith (i think they're using attachments, but how would i detect a collision with atta...
#

Im friends with Team Swordphin, so if you have additional questions I can ask the owner of it.

grim yoke
#

this is a bad way to do this now, its better to do shape casting now

granite stirrup
grim yoke
#

only real limitation is that it doesnt detect anything the first time its created but thats fixed in the enxt frame

grim yoke
grim yoke
granite stirrup
#

Shape cast is just moving a shape from point a to point b and if I remember correctly, if point b is “colliding” with point a then it would return nothing

grim yoke
granite stirrup
#

And is it’s prob one of its biggest limitations

grim yoke
#

i think

granite stirrup
#

Last I tested it, it wasn’t the case lol

grim yoke
#

so if its already touching something it wont detect

#

but once it moves a little bit

#

then it will detect

#

what this means is u shouldnt use it for 1 frame detection

#

so basically if u were to shapecast at a size and in a position that already intersects something it wont detect it at first but then once it moves to the next frame it should? (thats what i think initially means i could be wrong)

granite stirrup
#

🤷‍♂️

grim yoke
#

ah idk either

agile aurora
#

Ain't no way they just made a souls game but in roblox