2 #include "BaseObject.h" 3 #include "math/ShapeAABB.h" 34 virtual void SetBoundingBox(
float fOBB_X,
float fOBB_Y,
float fOBB_Z,
float fFacing);
39 virtual void GetBoundingBox(
float* fOBB_X,
float* fOBB_Y,
float* fOBB_Z,
float* fFacing);
48 virtual void SetBoundRect(
float fWidth,
float fHeight,
float fFacing);
52 virtual void GetBoundRect(
float* fWidth,
float* fHeight,
float* fFacing);
69 virtual void SetYaw(
float fValue);
74 virtual void SetHeight(
float fHeight);
78 virtual void SetWidth(
float fWidth);
82 virtual void SetDepth(
float fDepth);
87 virtual Vector3 GetLocalAABBCenter();
101 virtual void GetVerticesWithOrigin(
const Vector3* vOrigin,
Vector3 * pVertices,
int* nNumber);
3-dimensional vector with double precision.
Definition: ParaDVector3.h:17
virtual void SetBoundRect(float fWidth, float fHeight, float fFacing)
Set the object shape to rect (a plane) and rect parameters if fFacing is 0, it is a axis aligned boun...
Definition: TileObject.cpp:44
virtual DVector3 GetObjectCenter()
get the center of the object in world space
Definition: TileObject.cpp:145
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual float GetDepth()
get object depth: z axis
Definition: TileObject.cpp:100
virtual float GetHeight()
get object height y axis: only for object that has a Height property, usually is height of the boundi...
Definition: TileObject.cpp:75
virtual void SetAABB(const Vector3 *vMin, const Vector3 *vMax)
Set AABB information.
Definition: TileObject.cpp:122
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
virtual void GetBoundingBox(float *fOBB_X, float *fOBB_Y, float *fOBB_Z, float *fFacing)
Definition: TileObject.cpp:36
virtual DVector3 GetPosition()
always bottom center of the bounding shape
Definition: TileObject.cpp:112
virtual void SetRadius(float fRadius)
Set the object shape to Sphere and sphere parameters.
Definition: TileObject.cpp:62
AABB-related code.
Definition: ShapeAABB.h:11
virtual void GetBoundRect(float *fWidth, float *fHeight, float *fFacing)
Definition: TileObject.cpp:55
DVector3 m_vPos
position is always at the bottom center of the bounding shape.
Definition: TileObject.h:104
float m_fRadius
radius of m_aabb
Definition: TileObject.h:113
virtual void SetObjectCenter(const DVector3 &v)
set the center of the object in world space
Definition: TileObject.cpp:152
AABB with orientation by a matrix.
Definition: ShapeOBB.h:11
virtual float GetYaw()
get object Yaw: is facing the positive x axis, if yaw is 0.
Definition: TileObject.cpp:208
Tile Object have position and bounding rect and can usually be attached to quad-tree terrain tile...
Definition: TileObject.h:10
Defines the base class of all scene elements:CBaseObject for Parallel World Engine.
Definition: BaseObject.h:230
virtual float GetWidth()
get object width: x axis
Definition: TileObject.cpp:88
float m_fYaw
yaw or facing
Definition: TileObject.h:110
virtual void SetBoundingBox(float fOBB_X, float fOBB_Y, float fOBB_Z, float fFacing)
Set the object shape to box and bounding box parameters if fFacing is 0, it is a axis aligned boundin...
Definition: TileObject.cpp:25
virtual void GetOBB(CShapeOBB *obb)
get the oriented bounding box in world space.
Definition: TileObject.cpp:133
virtual float GetRadius()
Definition: TileObject.cpp:70
virtual void SetPosition(const DVector3 &v)
always bottom center of the bounding shape
Definition: TileObject.cpp:117
CShapeAABB m_aabb
bounding box of containing object.
Definition: TileObject.h:107
virtual bool IsTileObject()
if true, we will attach this object to quad-tree terrain tile according to its attributes when adding...
Definition: TileObject.h:20