|
Re: Magnets
[Re: A.Russell]
#32681
09/02/04 12:11
09/02/04 12:11
|
Joined: May 2002
Posts: 757 NY, USA
GhostDude
Developer
|
Developer
Joined: May 2002
Posts: 757
NY, USA
|
You could use a scan_entity() to determine if an attractable object is close, then use phent_addcentralforce or something like that to move the object.
Lead Programmer of Realspawn Productions
AIM: gh0s7mp630
MSN: [Email]"mpratt630@hotmail.com"[/Email]
|
|
|
Re: Magnets
[Re: A.Russell]
#32686
09/04/04 05:47
09/04/04 05:47
|
Joined: Jan 2003
Posts: 748 California
BHoltzman
Developer
|
Developer
Joined: Jan 2003
Posts: 748
California
|
If you don't need this to be interactive then it's very easy to set up an animation of the balls sticking to a magnetic cylinder. You can even use hook's law so the balls can build a chain that is effected by inertia and other forces you may want to introduce. Also the balls would be able to detect self collisions so they won't go through each other.
If this needs to be interactive then I don't know how to solve it. The latest beta messes up physics on my computer. But it's got some important physics functions like the iteration control and the physics auto off feature. I know I messed up the names but I'm hoping you know what I'm talking about.
Anywho, it's probably worth while to wait for these functions to work in the physics system.
I'm not Mr Franklin but I am Benjamin. My avatar partly suites me.
|
|
|
Re: Magnets
[Re: BHoltzman]
#32687
09/04/04 12:07
09/04/04 12:07
|
Joined: Mar 2003
Posts: 4,427 Japan
A.Russell
OP
Expert
|
OP
Expert
Joined: Mar 2003
Posts: 4,427
Japan
|
I'm going for the interactive approach. Here's a simple illustration to help explain the effect: I'm also still using 6.22. I'd like to learn more about "hooks law". How does that work?
|
|
|
Re: Magnets
[Re: A.Russell]
#32688
09/04/04 14:04
09/04/04 14:04
|
Joined: Jan 2003
Posts: 748 California
BHoltzman
Developer
|
Developer
Joined: Jan 2003
Posts: 748
California
|
Sure, Hooks law is a rule for particle simulation that makes the particles reach out from or away from a goal by hooking particles onto each other. It looks like how a strong magnetic field makes a series of metal objects stick to each other. It's a cool effect to watch. I'm only familiar with it through XSI. But if you're thinking of trying to simulate it interactively, I'm not sure how to help you.
I'll look for information on the technical aspect of it if you're interested. Or if you'd like me to email you an animation of hook's law in action, I can do that for you too.
EDIT: I did a google search and found a simple physics example showing Hook's law. It doesn't look terribly complicated. You take a look and see what you think.
http://www.suremath.com/suremath/suremath/kinDir/springW.html
Last edited by BHoltzman; 09/04/04 14:27.
I'm not Mr Franklin but I am Benjamin. My avatar partly suites me.
|
|
|
|