Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using Lite-C for Mechanical Programming #202784
04/16/08 23:33
04/16/08 23:33
Joined: Mar 2008
Posts: 73
America: New Jersey
Masna Offline OP
Junior Member
Masna  Offline OP
Junior Member

Joined: Mar 2008
Posts: 73
America: New Jersey
Is it possible to use Lite-C for physical mechanical engineering? I know nothing of mechanics but the idea just hit me. I'm sure there are more advanced programs that achieve this though. If anyone has any links or interesting contributions,that would be great. \:\)

Thanks,
Masna

Re: Using Lite-C for Mechanical Programming [Re: Masna] #202794
04/17/08 01:52
04/17/08 01:52
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Yes, it is possible. No, it is not easy. You basically have three possibilities:
  • Write it yourself. You have to implement all that hard physics stuff yourself. Veeeeery hard to achieve. If you know nothing about mechanics the maybe worst idea.
  • Use the integrated ODE physics engine. Unfortunately it has only very limited capabilities and known bugs. E.g. the cylinder simulation does not work sufficient.
  • Use the newton SDK. You might be interested in ventilators great Newton Lite-C Adaption. (Have a quick search on this forum, you'll find it rapidly.) Ventilator did all the nasty work so you can use it relatively comfortably. There is also an older adaption for c-script.
The question you should ask yourself is how detailed your simulation should be. Newton will be sufficient for simulating a game's world, but when it comes to very serious physical simulations you might run into trouble. ODE is only capable of simulating very simple scenarios.


Always learn from history, to be sure you make the same mistakes again...
Re: Using Lite-C for Mechanical Programming [Re: Uhrwerk] #202797
04/17/08 02:22
04/17/08 02:22
Joined: Mar 2008
Posts: 73
America: New Jersey
Masna Offline OP
Junior Member
Masna  Offline OP
Junior Member

Joined: Mar 2008
Posts: 73
America: New Jersey
Simulations would be nice, but I was thinking of something a bit easier. Like turning gears in order to make an object move foward, or making a timer that activates a light switch every 10 seconds. Of course those stupid examples are off the top of my head.

Re: Using Lite-C for Mechanical Programming [Re: Masna] #202876
04/17/08 17:00
04/17/08 17:00
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Turning gears should be possible with Newton. Making a timer that switches a light on or off every 10 seconds is a lite-c script of five lines. You don't need any third party tools or a physics engine at all to achieve this.


Always learn from history, to be sure you make the same mistakes again...
Re: Using Lite-C for Mechanical Programming [Re: Uhrwerk] #202902
04/17/08 23:16
04/17/08 23:16
Joined: Mar 2008
Posts: 73
America: New Jersey
Masna Offline OP
Junior Member
Masna  Offline OP
Junior Member

Joined: Mar 2008
Posts: 73
America: New Jersey
Er... Maybe it was a bad idea in the first place. First I need to master writing scripts for games.


Gamestudio download | 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