Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-21 Thread Kevin Fishburne
On 03/17/2011 05:39 AM, Caveat wrote: > Hi Kevin > Great to hear you got it working. I was having a discussion with a > developer friend of mine who needs to do a lot of "math stuff" in his > work and he came up with the suggestion to use affines, just a little > after Doriano came up with the wor

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-17 Thread Caveat
Hi Kevin Great to hear you got it working. I was having a discussion with a developer friend of mine who needs to do a lot of "math stuff" in his work and he came up with the suggestion to use affines, just a little after Doriano came up with the working solution (which is actually based on affine

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-16 Thread Kevin Fishburne
On 03/15/2011 05:03 PM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> Just to be clear on what -should- be happening, here's an example. >> Player is facing up (0 degrees): left stick pushed up moves up, pushed >> down >> moves down, pushed left moves left, pushed right move

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-15 Thread Doriano Blengino
Kevin Fishburne ha scritto: >Just to be clear on what -should- be happening, here's an example. >Player is facing up (0 degrees): left stick pushed up moves up, pushed down >moves down, pushed left moves left, pushed right moves right. >Player is facing right (90 degrees): left stic

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-15 Thread Kevin Fishburne
On 03/15/2011 11:03 AM, Doriano Blengino wrote: By adding a fixed value to the orientation of the player, at every frame, it will run in circle (speed<>0), or it will rotate on-place (speed=0). The radius of the circle will be proportional to speed/rotational_step... Yes, that is true.

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-15 Thread Doriano Blengino
Kevin Fishburne ha scritto: > On 03/14/2011 04:46 AM, Doriano Blengino wrote: > >> I think that you have too many variables involved... to define a speed >> in a plane you need only two coordinates - you should choose between two >> methods (or coordinate systems). >> >> >> I think that you

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-14 Thread Kevin Fishburne
On 03/14/2011 04:46 AM, Doriano Blengino wrote: > I think that you have too many variables involved... to define a speed > in a plane you need only two coordinates - you should choose between two > methods (or coordinate systems). > > The first one, which seems to fit best, is to choose a direction

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-14 Thread Doriano Blengino
Kevin Fishburne ha scritto: > I'm disturbed that I couldn't find an answer via Google that wasn't too > complex for my feeble mind to understand (my fault; I suck at math), so > I'm asking here. > > I'm trying to move a point with an angle/direction/vector relative to > its angle. Let's say I have

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-14 Thread Kevin Fishburne
On 03/14/2011 02:13 AM, Kevin Fishburne wrote: > I'm trying to move a point with an angle/direction/vector relative to > its angle. Let's say I have these variables: > > Dim a as Single ' Point's angle in degrees. > Dim x as Single ' Point's x coordinate. > Dim y as Single ' Point's y coordinate. >

[Gambas-user] translating planar coordinates relative to point's angle

2011-03-13 Thread Kevin Fishburne
I'm disturbed that I couldn't find an answer via Google that wasn't too complex for my feeble mind to understand (my fault; I suck at math), so I'm asking here. I'm trying to move a point with an angle/direction/vector relative to its angle. Let's say I have these variables: Dim a as Single '