|
|
Wind
#29703
06/30/04 09:57
06/30/04 09:57
|
Joined: Aug 2003
Posts: 828
agreenknight
OP
Developer
|
OP
Developer
Joined: Aug 2003
Posts: 828
|
I was just wondering, if I made like a cube of air, passible, and invisible, and it hit like models, how would the physic's engine take it? I would it be possible to simulate wind this way?
Keep It Simple, Make It Fun
|
|
|
Re: Wind
[Re: fastlane69]
#29705
06/30/04 18:05
06/30/04 18:05
|
Joined: Aug 2003
Posts: 828
agreenknight
OP
Developer
|
OP
Developer
Joined: Aug 2003
Posts: 828
|
Thanks Fastlane
Okay, would it be the same with water?
Keep It Simple, Make It Fun
|
|
|
Re: Wind
[Re: agreenknight]
#29706
06/30/04 21:53
06/30/04 21:53
|
Joined: Oct 2001
Posts: 1,407 Helsinki, Finland
Phantom88
Expert
|
Expert
Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
|
Quote:
Thanks Fastlane
Okay, would it be the same with water?
No Water doesn't affect the body if it isn't inside it(the water volume/box/plane...), and if it's only partially inside it it gets VERY hard. If you aren't a physics genious I wouldn't try to simulate water(unless you accept odd looking results...)
~Phantom88~
Programmer, Gamer
ICQ #: 157485106 | Xfire: Phantom1988 | MSN: lauri_andler@hotmail.com | AIM: FinPhantom | YAHOO: FinPhantom
|
|
|
Re: Wind
[Re: fastlane69]
#29707
06/30/04 22:00
06/30/04 22:00
|
Joined: Oct 2001
Posts: 1,407 Helsinki, Finland
Phantom88
Expert
|
Expert
Joined: Oct 2001
Posts: 1,407
Helsinki, Finland
|
Just thought of an way to approximate wind that could work much better than addforceglobal. Heres what you should do: 1. Iterate troough all vertices of the model every frame 2. Apply a force in the opposite direction of the normal of the vertex(only if the normal faces the wind)at the vertices position. Or alternate #2 (Don't know which  ) 2. Apply a force in the opposite direction of the bounce vector of the normal of the vertex and the winds direction(only if the normal faces the wind) at the vertices position I think #2 should work... That sounds very complex but i think it might work pretty well(No scientific proof whatsoever, just improvising...) This would theoretically spin the modell with the wind, not just move it, but since it doesn't take into account the sizes of the faces(every vertex has an equally sized effect) it's very crude and i don't even know if it is mathematically correct or works at all, just throwing an idea...  ~Phantom88~
Programmer, Gamer
ICQ #: 157485106 | Xfire: Phantom1988 | MSN: lauri_andler@hotmail.com | AIM: FinPhantom | YAHOO: FinPhantom
|
|
|
Re: Wind
[Re: fastlane69]
#29712
07/01/04 11:22
07/01/04 11:22
|
Joined: Aug 2003
Posts: 828
agreenknight
OP
Developer
|
OP
Developer
Joined: Aug 2003
Posts: 828
|
thanks,
is water hard because of the wind? How would you start that?
Keep It Simple, Make It Fun
|
|
|
|