1.

Solve : How to make an object move a direction?

Answer»

I'm working in Visual Basic 6.0 and I'm trying to figure out how to MOVE an object a distance based on a number of degrees (Like moving an object 1 unit to the left, except left=80Degrees and I want it to be able to calculate all 360 degrees.)
ANYBODY know how to do this, prbably involves trig.Not necessarily trig, but a little geometry wouldn't HURT. This is too involved to answer in a FORUM, whole books have been written on the subject.

You can either reference the VB openGL API 1.2 in your program and go from there (difficult) or use a Picturebox and use the PSet method to loop thru mapping coordinates and redrawing your object (less difficult).

Computers are very fast, so you'll probably need a timer event to slow things down to give the illusion of a smoother movement.

Good LUCK.



Discussion

No Comment Found