Object movement..

new topic     » topic index » view thread      » older message » newer message

Hi, anyone got any ideas on the following:

I have an object with a position {x,y} and velocity {x,y}

i also have other objects with position {x,y} these other objects attract or
repell the first object, how do i caluclate a value to add to the first
objects velocity so that it will be pushed directly away from a repelling
object, or pulled toward an attracting object? The force should be less
further away from the object.

Thanks,
    -Mark.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu