Page 1 of 1

vectoradd - illegal cast operation

PostPosted: Mon Oct 25, 2004 8:00 am
by jazz_e_bob
illegal cast operation?

On Actor is Colliding with Gravity Well:

double gravAngle = direction( x, y, collide.x, collide.y );

vectoradd( angle, diretional_velocity, gravAngle, 0.1);

What am I doing wrong here guys? :oops:

PostPosted: Mon Oct 25, 2004 8:35 pm
by makslane
The first two params are input and output.
You must use:

vectoradd( &angle, &diretional_velocity, gravAngle, 0.1);

PostPosted: Mon Oct 25, 2004 9:22 pm
by jazz_e_bob
8)

PostPosted: Mon Oct 25, 2004 9:57 pm
by Just4Fun
Love those ampersands &&&&! :wink:

PostPosted: Tue Oct 26, 2004 7:53 am
by ingsan
:oops: Can someone explain ? :oops:

PostPosted: Tue Oct 26, 2004 11:04 am
by jazz_e_bob