Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-27-2007, 04:00 AM
ArushenP2P ArushenP2P is offline
Graal Developer
ArushenP2P's Avatar
Join Date: Feb 2006
Location: Oakland, Calif. USA
Posts: 336
ArushenP2P is on a distinguished road
Send a message via AIM to ArushenP2P
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
Reply With Quote
  #2  
Old 03-27-2007, 04:07 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote
  #3  
Old 03-27-2007, 08:08 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
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.
Reply With Quote
  #4  
Old 03-27-2007, 08:10 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally Posted by ArushenP2P View Post
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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #5  
Old 03-27-2007, 11:42 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by Falcor View Post
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...
Reply With Quote
  #6  
Old 03-28-2007, 08:03 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
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.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:32 AM.


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