Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Physic System (https://forums.graalonline.com/forums/showthread.php?t=73110)

ArushenP2P 03-27-2007 04:00 AM

Physic System
 
Is it possible to make a Physic System? I'm talking about a more advance script other than the gravity script. Where you can push something and it moves until it slowly stops. :O

DustyPorViva 03-27-2007 04:07 AM

I guess... if you want to put the effort into it. Graal gives you the ability to alter the x, y, and z of every object. So I guess if you know your physics it's possible.
You can give the block a velocity when it's pushed and decrease it with friction, which is pretty simple.
Though if you want a global physics engine, that's a lot harder to manager every NPC's mass, velocity, friction, interaction and so on, with other NPC's I guess.

Twinny 03-27-2007 08:08 AM

You could have all the objects join a physics class which has all the needed functions. After that, shouldn't be too hard to do. I once thought of making a weapon which processed an objects current co-ords and environmental factors, making the system return the objects complete path.

Falcor 03-27-2007 08:10 AM

Quote:

Originally Posted by ArushenP2P (Post 1293516)
Is it possible to make a Physic System? I'm talking about a more advance script other than the gravity script. Where you can push something and it moves until it slowly stops. :O

You are essentially asking if you can apply elementary techniques for mechanics that you learned in high-school to gscript objects. Of course you can.

Unless you are talking about graal having a native support structure for these things, like the Havok engine... In which case the answer is no.

DrakilorP2P 03-27-2007 11:42 AM

Quote:

Originally Posted by Falcor (Post 1293571)
You are essentially asking if you can apply elementary techniques for mechanics that you learned in high-school to gscript objects. Of course you can.

Unless you are talking about graal having a native support structure for these things, like the Havok engine... In which case the answer is no.

Unless you want to have polygons floating around...

Kristi 03-28-2007 08:03 AM

YES
i've already done it and it RULES that you want to do it too!

Just stick to your real life physics, everything falls into place.


All times are GMT +2. The time now is 12:21 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.