goat3d

diff src/goat3d.cc @ 87:f0277d348c2c

fixed goat3d_get_node_<position|rotation|scaling> to return only the node's transformations
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 14 May 2014 18:28:38 +0300
parents 57e745dd13c2
children 7941e89798e5
line diff
     1.1 --- a/src/goat3d.cc	Wed May 14 05:34:38 2014 +0300
     1.2 +++ b/src/goat3d.cc	Wed May 14 18:28:38 2014 +0300
     1.3 @@ -897,7 +897,7 @@
     1.4  
     1.5  GOAT3DAPI void goat3d_get_node_position(const struct goat3d_node *node, float *xptr, float *yptr, float *zptr, long tmsec)
     1.6  {
     1.7 -	Vector3 pos = node->get_position(tmsec);
     1.8 +	Vector3 pos = node->get_node_position(tmsec);
     1.9  	*xptr = pos.x;
    1.10  	*yptr = pos.y;
    1.11  	*zptr = pos.z;
    1.12 @@ -905,7 +905,7 @@
    1.13  
    1.14  GOAT3DAPI void goat3d_get_node_rotation(const struct goat3d_node *node, float *xptr, float *yptr, float *zptr, float *wptr, long tmsec)
    1.15  {
    1.16 -	Quaternion q = node->get_rotation(tmsec);
    1.17 +	Quaternion q = node->get_node_rotation(tmsec);
    1.18  	*xptr = q.v.x;
    1.19  	*yptr = q.v.y;
    1.20  	*zptr = q.v.z;
    1.21 @@ -914,7 +914,7 @@
    1.22  
    1.23  GOAT3DAPI void goat3d_get_node_scaling(const struct goat3d_node *node, float *xptr, float *yptr, float *zptr, long tmsec)
    1.24  {
    1.25 -	Vector3 scale = node->get_scaling(tmsec);
    1.26 +	Vector3 scale = node->get_node_scaling(tmsec);
    1.27  	*xptr = scale.x;
    1.28  	*yptr = scale.y;
    1.29  	*zptr = scale.z;