RigidChips
Would you like to react to this message? Create an account in a few clicks or log in to continue.

High Speed Rocket Project

Go down

High Speed Rocket Project Empty High Speed Rocket Project

Post by RA2lover Sat Nov 19, 2011 12:06 pm

The idea consists on creating high velocity rockets using a physics engine glitch.

here's the current progress(i'll need lots of tweaking later on)

Code:
<?xml version="1.0" encoding="UTF-8"?>
<LB>
    <ATTRIB>
        <version>1.4.0</version>
        <TARGET>
            <u>1.17021</u>
            <v>-21.1915</v>
        </TARGET>
        <LUA>
            <index>bottom</index>
        </LUA>
        <DESCRIPTION>
            <text></text>
            <product>1</product>
        </DESCRIPTION>
    </ATTRIB>
    <CONTROL>
        <name>Brake</name>
        <default>0</default>
        <maintain>10</maintain>
        <min>-100</min>
        <max>100</max>
        <upKey0>5</upKey0>
        <upStep0>1</upStep0>
        <upKey1>0</upKey1>
        <upStep1>-1</upStep1>
        <upKey2>0</upKey2>
        <upStep2>1</upStep2>
        <upKey3>0</upKey3>
        <upStep3>1</upStep3>
    </CONTROL>
    <CONTROL>
        <name>Accel</name>
        <default>0</default>
        <maintain>200</maintain>
        <min>-200</min>
        <max>200</max>
        <upKey0>1</upKey0>
        <upStep0>200</upStep0>
        <upKey1>2</upKey1>
        <upStep1>-200</upStep1>
        <upKey2>0</upKey2>
        <upStep2>1</upStep2>
        <upKey3>0</upKey3>
        <upStep3>1</upStep3>
    </CONTROL>
    <CONTROL>
        <name>Handle</name>
        <default>0</default>
        <maintain>10</maintain>
        <min>-100</min>
        <max>100</max>
        <upKey0>3</upKey0>
        <upStep0>1</upStep0>
        <upKey1>4</upKey1>
        <upStep1>-1</upStep1>
        <upKey2>0</upKey2>
        <upStep2>1</upStep2>
        <upKey3>0</upKey3>
        <upStep3>1</upStep3>
    </CONTROL>
    <OBJ id="0">
        <name>Ball1</name>
        <type>ball</type>
        <u>1</u>
        <v>-22</v>
        <width>1</width>
        <height>-1</height>
        <thick>2</thick>
        <material>4</material>
        <coloring>0</coloring>
        <lightweight>1</lightweight>
        <glue>0</glue>
        <pack>0</pack>
    </OBJ>
    <OBJ id="1">
        <name>Disk1</name>
        <type>disk</type>
        <u>4</u>
        <v>-17</v>
        <width>0</width>
        <height>-1</height>
        <thick>6</thick>
        <material>1</material>
        <coloring>0</coloring>
        <lightweight>1</lightweight>
        <glue>0</glue>
        <pack>0</pack>
    </OBJ>
    <OBJ id="2">
        <name>Box1</name>
        <type>box</type>
        <u>0</u>
        <v>-20</v>
        <width>2</width>
        <height>8</height>
        <thick>2</thick>
        <material>4</material>
        <coloring>0</coloring>
        <lightweight>0</lightweight>
        <glue>0</glue>
        <pack>0</pack>
    </OBJ>
    <ATTACHMENT>
        <ATTACH>
            <type>motor</type>
            <direction>5</direction>
            <reverse>0</reverse>
            <angle>0</angle>
        </ATTACH>
        <FROM>
            <obj>0</obj>
            <type>ball</type>
            <side>2</side>
            <coord>1</coord>
            <u>0</u>
            <v>0</v>
            <bury>1</bury>
            <cover>1</cover>
        </FROM>
        <TO>
            <obj>2</obj>
            <type>box</type>
            <side>1</side>
            <coord>1</coord>
            <u>0.5</u>
            <v>0.125</v>
            <bury>1</bury>
        </TO>
    </ATTACHMENT>
    <ATTACHMENT>
        <ATTACH>
            <type>linear</type>
            <direction>5</direction>
            <name>Accel</name>
            <reverse>0</reverse>
            <angle>0</angle>
        </ATTACH>
        <FROM>
            <obj>1</obj>
            <type>disk</type>
            <side>2</side>
            <coord>0</coord>
            <angle>90</angle>
            <bury>1</bury>
            <cover>1</cover>
        </FROM>
        <TO>
            <obj>2</obj>
            <type>box</type>
            <side>1</side>
            <coord>1</coord>
            <u>0.5</u>
            <v>0.625</v>
            <bury>1</bury>
        </TO>
    </ATTACHMENT>
</LB>
<!--##LB_LUA_BLOCK
function OnFrame()
   lb.drawtext(32,32,"Welcome to Laputan Blueprints world!")
   lb.drawtext(32,52,string.format("FPS=%.2f",lb.getfps()))
   lb.drawtext(32,72,string.format("Blocks=%d",lb.getobjectcount()))
end
function OnInit()
   lb.print(lb.gettime(),"Init")
end
function OnReset()
   lb.print(lb.gettime(),"Reset")
end

##LB_LUA_BLOCK-->
RA2lover
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil

Back to top Go down

Back to top

- Similar topics

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