85 int i = (int)(ratio * (
float)
frames);
88 initO.GetObject()->ResetVertices();
91 doneO.GetObject()->ResetVertices();
92 cursorO.GetObject()->ResetVertices();
93 planeO.GetObject()->ResetVertices();
103 initO.GetObject()->Disable();
106 doneO.GetObject()->Disable();
107 cursorO.GetObject()->Disable();
108 planeO.GetObject()->Disable();
116 initO.GetObject()->Enable();
118 initO.GetObject()->GetTransform()->SetScale(
Vector3D(-0.75f, 0.75f, 1));
119 initO.GetObject()->GetTransform()->SetPosition(
Vector3D(180, 48, 0));
121 doneO.GetObject()->Enable();
123 doneO.GetObject()->GetTransform()->SetScale(
Vector3D(-0.75f, 0.75f, 1));
124 doneO.GetObject()->GetTransform()->SetPosition(
Vector3D(180, 48, 0));
135 cursorO.GetObject()->GetTransform()->SetScale(
Vector3D(-0.75f, 0.75f, 1));
136 cursorO.GetObject()->GetTransform()->SetPosition(
Vector3D(180, 56, 0));
152 if (transition < 0.5f){
153 scale =
Vector3D::LERP(
Vector3D(-0.75f, 0.75f, 1),
Vector3D(-10, 5.0f, 1),
Mathematics::Map(transition, 0.0f, 0.5f, 0.0f, 1.0f));
156 scale =
Vector3D::LERP(
Vector3D(-10, 5.0f, 1),
Vector3D(-20, 0.0f, 1),
Mathematics::Map(transition, 0.5f, 1.0f, 0.0f, 1.0f));
159 if (transition < 0.5f){
160 pos =
Vector3D::LERP(
Vector3D(180, 56, 0),
Vector3D(120, 180.0f, 0),
Mathematics::Map(transition, 0.0f, 0.5f, 0.0f, 1.0f));
163 pos =
Vector3D::LERP(
Vector3D(120, 180, 0),
Vector3D(-6.0f, 150.0f, 0),
Mathematics::Map(transition, 0.5f, 1.0f, 0.0f, 1.0f));
170 cursorO.GetObject()->GetTransform()->SetRotationOffset(center);
172 cursorO.GetObject()->GetTransform()->SetScale(scale);
173 cursorO.GetObject()->GetTransform()->SetRotation(rotation);
175 cursorO.GetObject()->GetTransform()->SetPosition(pos);
178 }
else if (i < 1260){
179 planeO.GetObject()->Enable();
183 float def = sinf(iO * 3.14159f / 180.0f * 1.0f) * 0.009f;
184 float freq = sinf(iO * 3.14159f / 180.0f * 1.0f) * 4000.0f;
188 float s1 = 0.3f + sinf(iO * 3.14159f / 180.0f * 2.0f) * 0.1f;
189 float s2 = 0.4f + sinf(iO * 3.14159f / 180.0f * 2.0f) * 0.1f;
190 float s3 = 0.3f + sinf(iO * 3.14159f / 180.0f * 3.0f) * 0.1f;
191 float zs =
Mathematics::Constrain(sinf(iO * 3.14159f / 180.0f * 1.0f) * 360.0f + 180.0f, 180.0f, 360.0f + 90.0f);
193 float xs = sinf(iO * 3.14159f / 180.0f * 1.0f) * 225.0f + 45.0f;
195 planeO.GetObject()->GetTransform()->SetScaleOffset(
Vector3D(0, 0, 0));
196 planeO.GetObject()->GetTransform()->SetScale(
Vector3D(s1, 1.0f - s2, s3));
198 planeO.GetObject()->GetTransform()->SetRotationOffset(
Vector3D(0, 100, 0));
199 planeO.GetObject()->GetTransform()->SetRotation(
Vector3D(cs + 45.0f, xs + 90.0f, zs));
201 planeO.GetObject()->GetTransform()->SetPosition(
Vector3D(96.0f, -48.0f, 0));
205 initO.GetObject()->UpdateTransform();
208 doneO.GetObject()->UpdateTransform();
209 cursorO.GetObject()->UpdateTransform();
210 planeO.GetObject()->UpdateTransform();