vectoradd - illegal cast operation

Non-platform specific questions.

vectoradd - illegal cast operation

Postby jazz_e_bob » Mon Oct 25, 2004 8:00 am

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:
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Mon Oct 25, 2004 8:35 pm

The first two params are input and output.
You must use:

vectoradd( &angle, &diretional_velocity, gravAngle, 0.1);
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Mon Oct 25, 2004 9:22 pm

8)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby Just4Fun » Mon Oct 25, 2004 9:57 pm

Love those ampersands &&&&! :wink:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby ingsan » Tue Oct 26, 2004 7:53 am

:oops: Can someone explain ? :oops:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby jazz_e_bob » Tue Oct 26, 2004 11:04 am

Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest