Hello everyone,
So I heard KING released their engine so I had to try it. I am trying to port my current project to this engine since it is a 2D mobile game, however, I am hitting a snag. I was following the “Platformer” tutorial and everything was going fine until I tried to add the collision response to the unit against the ground.
I have a unit with a box collider of type “kinematic” with group “unit” and mask of “terrain”. I also have some objects with a box collider in the scene of type “static” with group “terrain” and mask “unit”. I also attached a script to the units, and here is the snippet I am using within that script:
function on_message(self, message_id, message, sender)
print("GOT A MESSAGE");
-- check if we received a contact point message. One message for each contact point
if message_id == hash("contact_point_response") then
if message.group == hash("terrain") then
handle_geometry_contact(self, message.normal, message.distance);
end
end
end
However, I do not even see the “GOT A MESSAGE” log once, even though I see the objects go through each other.
PLEASE HELP I AM GOING MAD!!!