Normal vector turns nil when sent as argument

When sending the normal vector from a kinematic collision from the frog hero runner tutorial, it turns the normal vector nil in the vmath.dot operation. Any ideas? :C

Is the normal nil just before you call the floor_contact too?

Just checked and indeed, the whole message param seems to be nil value :confused:

Tried making some sense of the documentation but can’t seem to understand. Thank you for your response!


But you’re not checking message_id. There are more than one message that contains the group property.

if message_id == hash(“contact_point_response”) and message.group == hash(“floor”) then

3 Likes

There’s also a typo “mesasge” instead of “message”

4 Likes

That was it, thank you so much for your time I really appreciate it!

2 Likes

:sweat_smile:

1 Like