Hello,
i have a strange thing with collisions.
This is my code:
In main():
eBall.emask |= (ENABLE_BLOCK | ENABLE_ENTITY);
eBall.event = kontaktas;
in function kontaktas():
switch (event_type)
{
case EVENT_BLOCK:
vec_to_angle(my.pan,bounce);
return;
case EVENT_ENTITY:
vec_to_angle(my.pan,bounce);
return;
}
It should collide with the world and entities in it and bounce against them. It works, but the collision point is very far from the entity

:

What can I do to make them collide exacly where they should?
(The earth entity comes from the top)
Thanks.