Thijs Leeflang wrote: > hello, > > im having a problem with trajectories, > im trying to make an arrow like movement > i did find this but it's way over my head > > http://www.gamedev.net/reference/programming/features/physicsch6/ch06.pdf Those algorithms look like they'd be fairly simple to implement, but as Ellie said, you will need to review basic trigonometry. > > i have these values, > @x and @y is the x and y the image is drawn > > @targetx = targetx > @targety = targety > @fromx = fromx > @fromy = fromx > @x = fromx > @y = fromy > > can anybody help me with this? > thanx It should be fairly clear from the formulae. One thing that bears repeating, though: never use the default floating-point numbers for math; they're simply not precise enough. Use integers or BigDecimal. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen / marnen.org -- Posted via http://www.ruby-forum.com/.