[ODE] Simulating Magnetism...
Jon Watte
hplus-ode at mindcontrol.org
Tue Jan 11 14:33:42 MST 2005
Just use forces and collision. The magnet would draw other objects towards the center, somewhat proportional to the magnetic mass of the target object and the strength of the magnetism, and inversely proportional to the square of the distance between magnet and object center.
If, once the objects get glued together, you want to make simulation more efficient, and making it stick, you would remove the target body, and add its geom (using a geomtransform) to the list of geoms used by the big accumulating ball.
Cheers,
/ h+
-----Original Message-----
From: ode-bounces at q12.org [mailto:ode-bounces at q12.org]On Behalf Of
Dominique Louis
Sent: Tuesday, January 11, 2005 12:32 PM
To: ode at q12.org
Subject: [ODE] Simulating Magnetism...
Has anyone here played the game Katamari Damacy (
http://www.namco.com/games/katamari_damacy/ ). Anyway basically I was
wondering if it would be possible to use ODE to simulate a large
spherical magnet.
How would others suggest I attach other objects to this magnet at
runtime. Would creating a certain type of joint for each new object, be
the way to go?
Thanks,
Dominique.
_______________________________________________
ODE mailing list
ODE at q12.org
http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list