polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 6a1950cefd947d9d81eb71fca6a3eebe2b776f79
parent 4387c15d2d54a3bc1be16dd02b8fe157f91d5b86
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  6 Nov 2018 13:32:15 -0800

orbit wip

Diffstat:
Msrc/orbit.c | 4++--
Msrc/vec3.c | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/orbit.c b/src/orbit.c @@ -11,14 +11,14 @@ void orbit_to_mat4(struct orbit *orbit, float *m) static void orbit_to_vec3(struct orbit *orbit, float *v3) { - float x = r * sin(theta) * cos(phi); + /* float x = r * sin(theta) * cos(phi); */ } /* static void orbit_update_node(struct node *node) { */ /* } */ void orbit_to_node(struct orbit *orbit, struct node *node) { - orbit_to_quat(orbit, node->orientation); + /* orbit_to_quat(orbit, node->orientation); */ node_mark_for_recalc(node); } diff --git a/src/vec3.c b/src/vec3.c @@ -267,4 +267,5 @@ vec3 *vec3_from_yaw_pitch(float yaw, float pitch, float *dest) { dest[0] = sin(theta) * cos(phi); dest[1] = sin(theta) * sin(phi); dest[2] = cos(theta); + return dest; }