Posted: 26th Oct 2011 13:09
Hi all,

I'm playing with the CreatePhysicsForce command which seems to apply the force in all directions.

Is it possible to apply a force in a certain direction only? For example I'm thinking of something like a hoover that could suck objects in from one direction.

Cheers,
Dud
Posted: 26th Oct 2011 15:16
You might have to use commands such as "SetSpritePhysicsForce( iSpriteIndex, x, y, vx, vy )" and manually check when sprites are in 'range' of your "hoover". There are no commands for this yet.

Perhaps you could suggest them as enhancements on the "Bug Report" page?

I imagine something like this might be nice:
forceID = createPhysicsDirectionForce(x#, y#, angle#, width#, range#)

Nevermind I'll do it...

EDIT: added here: Issue 118
Posted: 26th Oct 2011 16:26
Hey thanks for posting it as a suggested enhancement, in the meantime I'll try coming up with my own method.

Cheers,
Dud