1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-06-29 12:27:05 +00:00
re3/src/collision/ColPoint.h

33 lines
705 B
C
Raw Normal View History

#pragma once
struct CColPoint
{
CVector point;
2021-02-09 16:35:41 +00:00
float depth;
// the surface normal on the surface of point
CVector normal;
uint8 surfaceA;
uint8 pieceA;
uint8 surfaceB;
uint8 pieceB;
const CVector &GetNormal() { return normal; }
float GetDepth() { return depth; }
void Set(float depth, uint8 surfA, uint8 pieceA, uint8 surfB, uint8 pieceB) {
this->depth = depth;
this->surfaceA = surfA;
this->pieceA = pieceA;
this->surfaceB = surfB;
this->pieceB = pieceB;
}
void Set(uint8 surfA, uint8 pieceA, uint8 surfB, uint8 pieceB) {
this->surfaceA = surfA;
this->pieceA = pieceA;
this->surfaceB = surfB;
this->pieceB = pieceB;
}
CColPoint &operator=(const CColPoint &other);
};