Sin & Cos trouble

Blitz3D Forums/Blitz3D Beginners Area/Sin & Cos trouble

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I think sin(angle*4) will be converted to an integer once multiplied by distance in this example - assuming 'distance' is defined as an integer, hence the incorrect x & y

try

x = 164 + sin(angle*4) * float( distance )