Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
BodyDistance2D Struct Reference

Structure representing the distance information between two colliders. More...

#include <body_distance_2d.h>

Public Attributes

float distance {0.0f}
 
Point normal {0.0f, 0.0f}
 
Point point_a {0.0f, 0.0f}
 
Point point_b {0.0f, 0.0f}
 

Detailed Description

Structure representing the distance information between two colliders.

This struct encapsulates the distance, normal vector, and contact points between two physics bodies in the world.

Member Data Documentation

◆ distance

float BodyDistance2D::distance {0.0f}

◆ normal

Point BodyDistance2D::normal {0.0f, 0.0f}

◆ point_a

Point BodyDistance2D::point_a {0.0f, 0.0f}

◆ point_b

Point BodyDistance2D::point_b {0.0f, 0.0f}

The documentation for this struct was generated from the following file: