4#include "../Objects/SolidCube.h"
5#include "../Materials/DepthMaterial.h"
6#include "../Materials/LightMaterial.h"
7#include "../Math/FunctionGenerator.h"
10#include "Flash/ImageSequences/Nerd.h"
24 scene->AddObject(
cube.GetObject());
26 cube.GetObject()->SetMaterial(&
gif);
29 void FadeIn(
float stepRatio)
override {}
45 gif.SetPosition(
Vector2D(20.0f + shift, 135.0f + shift));
47 gif.SetRotation(15.0f + rotate);
50 cube.GetObject()->ResetVertices();
52 cube.GetObject()->GetTransform()->SetRotation(rotation);
53 cube.GetObject()->GetTransform()->SetScale(
Vector3D(sx, sx, sx));
54 cube.GetObject()->GetTransform()->SetScaleOffset(
cube.GetObject()->GetCenterOffset());
55 cube.GetObject()->GetTransform()->SetPosition(
Vector3D(125.0f, 75.0f, 600.0f));
57 cube.GetObject()->UpdateTransform();
FunctionGenerator fGenObjScale
FunctionGenerator fGenMatPos
void FadeIn(float stepRatio) override
void FadeOut(float stepRatio) override
FunctionGenerator fGenObjRotation
void Update(float ratio) override
FunctionGenerator fGenMatRot
FunctionGenerator fGenMatSize
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.
Handles 3D rotations and conversions between various rotation representations.
Quaternion GetQuaternion()
Gets the quaternion representation of the rotation.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
const EulerOrder EulerOrderXZYS
Order: X → Z → Y, static frame.