4#include "../Math/FunctionGenerator.h"
5#include "../Objects/Rocks.h"
15 scene->AddObject(
rocks.GetObject());
18 void FadeIn(
float stepRatio)
override {}
27 rocks.GetObject()->ResetVertices();
29 rocks.GetObject()->GetTransform()->SetRotation(rotation);
30 rocks.GetObject()->GetTransform()->SetScale(
Vector3D(sx, sx, sx));
31 rocks.GetObject()->GetTransform()->SetPosition(
Vector3D(0.0f, 125.0f, 600.0f));
33 rocks.GetObject()->UpdateTransform();
Encapsulates a 3D rotation using Euler angles and a specific order of application.
A class to generate various waveform functions with customizable parameters.
float Update()
Updates and calculates the next value of the waveform.
A mathematical construct representing a rotation in 3D space.
FunctionGenerator fGenScale
FunctionGenerator fGenRotation
void FadeIn(float stepRatio) override
void FadeOut(float stepRatio) override
void Update(float ratio) override
Handles 3D rotations and conversions between various rotation representations.
Quaternion GetQuaternion()
Gets the quaternion representation of the rotation.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
const EulerOrder EulerOrderXZYS
Order: X → Z → Y, static frame.