You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't made a collision point method. For my use cases so far, the PlacedShape::normal_from method has been enough. Though it would be easy enough to add a method like this. Here's what the function signature might look like:
impl PlacedShape {
/// Returns the contact point of two shapes,
/// or the nearest point if they are not overlapping
fn contact_point(&self, other: &PlacedShape) -> Vec2 {...}
}
Let me know if this satisfies your use case. If so, I will add this method.
After the two HitBox collisions, I need to get the collision point. What should I do?
The text was updated successfully, but these errors were encountered: