testing
This commit is contained in:
parent
c602220707
commit
495d7c97ee
@ -320,12 +320,14 @@ INTERNAL void game_update(void)
|
|||||||
/* ENTITY_PROP_TEST */
|
/* ENTITY_PROP_TEST */
|
||||||
if (entity_has_prop(ent, ENTITY_PROP_TEST)) {
|
if (entity_has_prop(ent, ENTITY_PROP_TEST)) {
|
||||||
f32 t = ((f32)L.world.time);
|
f32 t = ((f32)L.world.time);
|
||||||
|
struct v2 og = V2(math_cos(t), math_sin(t));
|
||||||
f32 r = t * 2.f;
|
f32 r = t * 2.f;
|
||||||
f32 s = 1 + (math_fabs(math_sin(t * 5)) * 3);
|
f32 s = 1 + (math_fabs(math_sin(t * 5)) * 3);
|
||||||
|
(UNUSED)og;
|
||||||
(UNUSED)r;
|
(UNUSED)r;
|
||||||
(UNUSED)s;
|
(UNUSED)s;
|
||||||
|
|
||||||
|
ent->rel_xform.og = og;
|
||||||
ent->rel_xform = xform_with_rotation(ent->rel_xform, r);
|
ent->rel_xform = xform_with_rotation(ent->rel_xform, r);
|
||||||
ent->rel_xform = xform_with_scale(ent->rel_xform, V2(s, 1));
|
ent->rel_xform = xform_with_scale(ent->rel_xform, V2(s, 1));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user