mirror of
https://github.com/bloeys/physx-go.git
synced 2025-12-29 07:58:20 +00:00
CPxPlane as value type
This commit is contained in:
@ -1,18 +1,19 @@
|
||||
#ifndef CPxPlane_H
|
||||
#define CPxPlane_H
|
||||
|
||||
#include "CPxVec3.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//NOTE: Maybe convert this into a value type like CPxSphereGeometry?
|
||||
struct CPxPlane
|
||||
{
|
||||
void* obj;
|
||||
CSTRUCT CPxVec3 n; //!< The normal to the plane
|
||||
float d; //!< The distance from the origin
|
||||
};
|
||||
|
||||
CPxAPI CSTRUCT CPxPlane* NewCPxPlane(float nx, float ny, float nz, float distance);
|
||||
CPxAPI void CPxPlane_release(CSTRUCT CPxPlane*);
|
||||
CPxAPI CSTRUCT CPxPlane NewCPxPlane(float nx, float ny, float nz, float distance);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user