Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet INF443 Maé
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noé ARTRU
Projet INF443 Maé
Commits
0b93d2dd
Commit
0b93d2dd
authored
1 year ago
by
Noé
Browse files
Options
Downloads
Patches
Plain Diff
Timer RAS
parent
973237b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projet-code/scenes_inf443/base/src/scene.cpp
+3
-3
3 additions, 3 deletions
projet-code/scenes_inf443/base/src/scene.cpp
projet-code/scenes_inf443/base/src/scene.hpp
+2
-2
2 additions, 2 deletions
projet-code/scenes_inf443/base/src/scene.hpp
with
5 additions
and
5 deletions
projet-code/scenes_inf443/base/src/scene.cpp
+
3
−
3
View file @
0b93d2dd
...
...
@@ -236,7 +236,7 @@ void scene_structure::display_bat(vec3 p)
//Orientation and position of the b
ird
along the path
//Orientation and position of the b
at
along the path
float
t
=
timer_mvt
.
t
;
vec3
p2
;
if
(
t
+
0.1
f
>
timer_mvt
.
t_max
)
p2
=
interpolation
(
0.01
f
,
keyframe
.
key_positions
,
keyframe
.
key_times
,
gui
.
k
);
...
...
@@ -356,7 +356,7 @@ void scene_structure::display_gui()
void
scene_structure
::
display_ball
()
{
bouncing
.
simulate
(
timer
_chain
.
scale
*
0.01
f
,
terrain_length
);
bouncing
.
simulate
(
timer
.
scale
*
0.01
f
,
terrain_length
);
for
(
int
i
=
0
;
i
<
bouncing
.
N
;
i
++
)
{
bouncing
.
mesh
.
model
.
translation
=
bouncing
.
pos
[
i
];
bouncing
.
mesh
.
material
.
color
=
bouncing
.
color
[
i
];
...
...
@@ -366,7 +366,7 @@ void scene_structure::display_ball() {
void
scene_structure
::
display_projectiles
()
{
projectiles
.
simulate
(
timer
_chain
.
scale
*
0.03
f
,
terrain_length
);
projectiles
.
simulate
(
timer
.
scale
*
0.03
f
,
terrain_length
);
for
(
int
i
=
0
;
i
<
projectiles
.
N
;
i
++
)
{
projectiles
.
mesh
.
model
.
translation
=
projectiles
.
pos
[
i
];
projectiles
.
mesh
.
material
.
color
=
projectiles
.
color
[
i
];
...
...
This diff is collapsed.
Click to expand it.
projet-code/scenes_inf443/base/src/scene.hpp
+
2
−
2
View file @
0b93d2dd
...
...
@@ -47,10 +47,10 @@ struct scene_structure : cgp::scene_inputs_generic {
// ****************************** //
// Elements and shapes of the scene
// ****************************** //
// Timer used for the animation
cgp
::
skybox_drawable
skybox
;
// Timer used for the animation
timer_basic
timer
;
cgp
::
mesh_drawable
terrain
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment