#Punch system
21 messages · Page 1 of 1 (latest)
Not 100% sure, but you need an overlap sphere on the hand position first of all
(update 30hz for the sphere)
Alright I've got that
I think you need to get list get count of the collisions
If greater than 0 then true
A set velocity
Direction is hand velocity
Speed is magnitude of the hand velocity
If i'm wrong i'll let anyone correct me
May you make an example because I believe I made it wrong
Hmmm send a pic
I used Raycast with my punch cv2. I'm making a one punch man game that's super complex circuit wise so maybe mine is a little much for what you're aiming for but regardless:
I got hand position and velocity, raycast start at hand position, raycast direction at hand velocity, then for calculating the speed of the punch I used vector split on the hand velocity, used absolute value on the vector's (x), (y), and (z) values (that way you take direction out of the vector so you're just left with speed) and added all absolute values to get what is essentially how fast the hand travels in total - it's speed
I also did a whole bunch of other stuff specific to my game but i dont wanna share that cause it's specific plus i dont wanna type all those chips out 
what
im super dumb
idk how to simplify
You can use the player collision event in beta