Hello everyone,
I'm hoping to get some help. I'm trying to get a number of objects to orbit themselves (they a part of the same array). I've programmed this before in Canvas and java and it always works. But for some reason in Corona the objects fly away in a perfect 45 degree angle. This even happens if I have the v.g (pulling value) as a random value. They fly away just the same.
now if I set this line in the code they orbit around 300x 300y just fine.
1 2 | v3.xd = (v2.x-v3.x); ---> to v3.xd = (300-v3.x); v3.yd = (v2.y-v3.y); ---> to v3.yd = (300-v3.y); |
Totally spaced the problem was the second array I was calculating it by its self... hence you need to add in :
if(v2~=v3) then
After the second array starts