Quark Physics  1.0
2D Rigid and Soft Body Physics Engine
QRaycast::Contact Struct Reference

#include <qraycast.h>

Collaboration diagram for QRaycast::Contact:

Public Member Functions

 Contact (QBody *body, QVector position, QVector normal, float distance)
 

Public Attributes

QBodybody
 
QVector position
 
QVector normal
 
float distance
 

Detailed Description

A contact struct for raycast collision results. It has some information about the ray collision.

Member Data Documentation

◆ body

QBody* QRaycast::Contact::body

The contact body of the ray collision.

◆ distance

float QRaycast::Contact::distance

The distance between the ray position and the contact body.

◆ normal

QVector QRaycast::Contact::normal

The contact normal of the ray collision.

◆ position

QVector QRaycast::Contact::position

The contact position of the ray collision.


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