Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, TedMar, AndrewAMD), 1,353 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Magnets [Re: A.Russell] #32690
09/06/04 10:46
09/06/04 10:46
Joined: May 2002
Posts: 757
NY, USA
GhostDude Offline
Developer
GhostDude  Offline
Developer

Joined: May 2002
Posts: 757
NY, USA
I must be thinking of a different Hook's law...

All you have to do is this: give the magnet an action that keeps scanning around it for physics entities. You can use events like event_scan and event_detect, and a flag to show which entities are physics entities. Then, if one gets close enough to the magnet, use forces to push the ball at the magnet... phent_addcentralforce, etc.

It would have to be a pretty strong force to overcome other forces + gravity... also, magnetic attraction grows stronger the closer the 2 objects become, just something to keep in mind for realism...


Lead Programmer of Realspawn Productions AIM: gh0s7mp630 MSN: [Email]"mpratt630@hotmail.com"[/Email]
Re: Magnets [Re: A.Russell] #32691
09/06/04 13:54
09/06/04 13:54
Joined: Jan 2003
Posts: 748
California
BHoltzman Offline
Developer
BHoltzman  Offline
Developer

Joined: Jan 2003
Posts: 748
California
I'll admit I didn't look very carefully at Hook's law. But it seems like it's just an algebraic expression. XSI does this rule in simulation in real time so it's not impossible to make it work in real time. Then again it may have taken a mathematician to figure out how to do Hook's law in real time. I really have no idea.


I'm not Mr Franklin but I am Benjamin. My avatar partly suites me.
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1