Hello,
I want to apply an impulse to "sprite A" when "sprite B" collides with it. Object A has the behavior "Physics" but not object B.
Here, "Sprite A" is the hitbox of an enemy and "sprite B" is a bullet fired by the player.
An obvious solution would be to apply the physics bevavior to the two sprites, but this is unfotunatly not an option in my current project for other reasons. Only the enemy hitbox can have physics properties (in order to interact with other enemy hitboxes).
When I want to apply an impulse with the "Physics" events, the impulse can only be applied at an image point. I dont find how to apply it at a custom point on a sprite (the impact point with the bullet).
And last but not least, the hitbox is not a simple circle, the shape is more like a square. The impact point is also important because it will determine precisely how the "sprite B" will react to the impulse (angle, rotation, etc.).
Basicaly, I want to simulate an impact between two "Physics" objects at a specific point, but ony the object which is hit can have the physics bevavior.