Do not use vec_zero to intiialize a pointer. Use it to initialize a "pointee".

In other words: vec_to and vec_from should be of type VECTOR and not VECTOR*.
------------------------------------------------------------------
Alternatively you could initialize the pointers by writing:

vec_to = vector(0,0,0);

The "vector" instruction will return a pointer, just what we need here. So, in this case, you could continue writing VECTOR*. One of the two approaches should work, the second one does for me.

Gnometech


Download our playable Movement & Interaction Tutorial for 3DGS here:
http://www.puppenheim.org/MITutorial.zip