3 #include <reactphysics3d/collision/shapes/HeightFieldShape.h>
4 #include <reactphysics3d/mathematics/Vector3.h>
40 Console::println(
"HeightMap::setScale(): not supported!");
51 if (this->world !=
nullptr && this->world !=
world) {
52 Console::println(
"HeightMap::createCollisionShape(): already attached to a world.");
63 reactphysics3d::HeightFieldShape::HeightDataType::HEIGHT_FLOAT_TYPE,
Dynamic physics world class.
reactphysics3d::PhysicsCommon physicsCommon
Bounding volume interface.
reactphysics3d::CollisionShape * collisionShape
Height map physics primitive.
HeightMap(int columns, int rows, float minHeight, float maxHeight, float *heightValues, const Vector3 &scale=Vector3(1.0f, 1.0f, 1.0f))
Public constructor.
void destroyCollisionShape() override
Destroy collision shape.
void setScale(const Vector3 &scale) override
Set local scale.
~HeightMap()
Public destructor.
void createCollisionShape(World *world) override
Create collision shap.
BoundingVolume * clone() const override
Clones this bounding volume.
Vector3 class representing vector3 mathematical structure and operations with x, y,...
Vector3 & set(float x, float y, float z)
Sets this vector3 by its components.