![]() |
AireEngine
A 3D Open-World Game Engine
|
A 2D rectangle in 3D space. More...
#include <Particle.h>
Public Member Functions | |
| glm::vec3 | getNormal () |
| Rectangle (float width, float length, float height, RectangleType type, glm::vec2 initialPosition=glm::vec2(0.0f)) | |
Public Attributes | |
| glm::vec3 | leftTop |
| glm::vec3 | leftBottom |
| glm::vec3 | rightBottom |
| glm::vec3 | rightTop |
A 2D rectangle in 3D space.
|
inline |
Create 2D rectangle in the world
| width | Width of the rectangle |
| length | Length of the rectangle |
| height | Height of the rectangle |
| type | Rectangle type (plane XY, XZ, or YZ) |
| initialPosition | Position in the world |