Jet Car

View previous topic View next topic Go down

Jet Car

Post by DanielLC on Sat Oct 30, 2010 3:50 pm

This is an old model I had on an earlier forum. It has a top speed of 350 km/hr (100 m/s), which it reaches in one second. It can turn a full circle in three seconds.

It has a few problems. It can't go off jumps or under water. With unbreakable off, it can shatter driving over rough ground, and will shatter if it runs into something. It can't be driven upside-down, and driving on walls is possible, but not recommended.

Code:
Val
{
  Speed(default=0,min=-100,max=100,step=20)
  JetXNW(default=0,min=-1000000,max=1000000,step=0)
  JetXSW(default=0,min=-1000000,max=1000000,step=0)
  JetXSE(default=0,min=-1000000,max=1000000,step=0)
  JetXNE(default=0,min=-1000000,max=1000000,step=0)
  JetYNW(default=100000,min=-000000,max=1000000,step=0)
  JetYSW(default=100000,min=-000000,max=1000000,step=0)
  JetYSE(default=100000,min=-000000,max=1000000,step=0)
  JetYNE(default=100000,min=-000000,max=1000000,step=0)
  JetZNW(default=0,min=-1000000,max=1000000,step=0)
  JetZSW(default=0,min=-1000000,max=1000000,step=0)
  JetZSE(default=0,min=-1000000,max=1000000,step=0)
  JetZNE(default=0,min=-1000000,max=1000000,step=0)
  Angle(default=0,min=-0.1,max=0.1,step=0.1)
  EY(default=0,min=-3.14,max=3.14,step=0)
}
Key
{
  0:Speed(step=20)
  1:Speed(step=-20)
  2:Angle(step=-0.1)
  3:Angle(step=0.1)
}
Body {
  Core(){
 N:Frame(option=1){
 N:Frame(option=1){
    W:Frame(option=1){
    W:Jet(name=NW,power=-JetYNW){
  N:Jet(power=JetXNW,angle=90){}
  W:Jet(power=JetZNW,angle=90){}
    }}
    E:Frame(option=1){
    E:Jet(name=NE,power=-JetYNE){
  N:Jet(power=JetXNE,angle=90){}
  E:Jet(power=JetZNE,angle=90){}
    }}
 }}
 S:TrimF(spring=0.2,damper=0.2,option=1){
 S:Frame(option=1){
    W:Frame(option=1){
    W:Jet(name=SW,power=-JetYSW){
  S:Jet(power=JetXSW,angle=90){}
  W:Jet(power=JetZSW,angle=90){}
    }}
    E:Frame(option=1){
    E:Jet(name=SE,power=-JetYSE){
  S:Jet(power=JetXSE,angle=90){}
  E:Jet(power=JetZSE,angle=90){}
    }}
 }}
  }
}
Script
{
  DEY=_ey()-EY
  EY=_ey()
  if DEY>3.14 {DEY=DEY-6.28}
  if DEY<-3.14 {DEY=DEY+6.28}
  Spin=(Angle-DEY)*500000
  Forward=(Speed+_vz())*5000
  Sideways=_vx()*5000
  label endif2
  JetXNE=Forward-Spin
  JetXSW=-Forward-Spin
  JetZNW=-Sideways-Spin
  JetZSE=Sideways-Spin
  JetXNW=Forward+Spin
  JetXSE=-Forward+Spin
  JetZNE=Sideways+Spin
  JetZSW=-Sideways+Spin
  JetYNW=(_h(NW)-0.6)*1000000
  JetYSW=(_h(SW)-0.6)*1000000
  JetYNE=(_h(NE)-0.6)*1000000
  JetYSE=(_h(SE)-0.6)*1000000
  if JetYNW>JetYSW
  {
 Max=JetYNW
 Min=JetYSW
 goto endelse
  }
 Max=JetYSW
 Min=JetYNW
  label endelse
  if JetYNE>Max {Max=JetYNE}
  if JetYNE<Min {Min=JetYNE}
  if JetYSE>Max {Max=JetYSE}
  if JetYSE<Min {Min=JetYSE}
  if Max-Min>200000
  {
 JetYNW=Min
 JetYSW=Min
 JetYNE=Min
 JetYSE=Min
  }
}

DanielLC
Tank
Tank

Posts : 78
Join date : 2010-10-23

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum