Detecting impact speed
I want to detect when a player hits the ground too fast. I’m currently using a movement detector sending current velocity into a calculator checking for >2 combined with an impact sensor detecting touch for the correct object label. These go into an AND gate.
Sometimes it works, but often it doesn’t. Is it possible that the velocity is being reset to 0 on impact before both conditions are fulfilled? Other good ways to handle this scenario?
-
The AND gate only seems to output the lesser of its 2 values. I got this working by sending the movement speed through a node and the output of impact sensor to the node's power output. That way you get the speed output but only while impact is detected.
-
I meant the node's power input
-
To make this more robust and account for relative velocity when colliding with a moving surface I think I'd want to implement as a deceleration sensor. So you constantly compare the current speed with the previous speed and output a signal if the delta is negative beyond a threshold. Maybe I'll make a chip for that.
-
I’m pretty sure the bump output of the impact sensor outputs how hard the surface was hit
댓글을 남기려면 로그인하세요.