[Guide] Trampolines/Boosters

Daichi

Retired EN Staff
Heyo! Here I'm going to show you a guide to Trampolines and Boosters.
1. Make sure the ground is dynamic with fixed rotation and no mass.
2. In the XML add a <L></L> tag between the final <O/> and </Z>.
For example:
<C>
<P />
<Z>
<S>
<S L="800" H="50" X="400" Y="400" T="0" P="1,0,20,0.2,0,1,0,0" />
<S L="100" H="30" X="50" Y="320" T="0" P="0,0,0.3,0,0,0,0,0" />
<S P="0,0,0.3,0.2,45,0,0,0" L="30" o="324650" X="600" c="4" Y="340" T="12" H="30" />
<S H="24" L="24" o="6a7495" X="595" c="4" Y="340" T="12" P="0,0,0.3,0.2,45,0,0,0" />
</S>
<D>
<DS Y="300" X="50" />
</D>
<O />
</Z>
</C>
Becomes:
<C>
<P />
<Z>
<S>
<S L="800" H="50" X="400" Y="400" T="0" P="1,0,20,0.2,0,1,0,0" />
<S L="100" H="30" X="50" Y="320" T="0" P="0,0,0.3,0,0,0,0,0" />
<S P="0,0,0.3,0.2,45,0,0,0" L="30" o="324650" X="600" c="4" Y="340" T="12" H="30" />
<S H="24" L="24" o="6a7495" X="595" c="4" Y="340" T="12" P="0,0,0.3,0.2,45,0,0,0" />
</S>
<D>
<DS Y="300" X="50" />
</D>
<O />
<L></L>
</Z>
</C>
3. In between the <L></L> tag, add two <JP M1="1" M2="0" /> tags.
4. Each tag has to have M1="Z value of the treadmill ground" and M2="Z value of a static ground on the map".
<C>
<P />
<Z>
<S>
<S L="800" H="50" X="400" Y="400" T="0" P="1,0,20,0.2,0,1,0,0" />
<S L="100" H="30" X="50" Y="320" T="0" P="0,0,0.3,0,0,0,0,0" />
<S P="0,0,0.3,0.2,45,0,0,0" L="30" o="324650" X="600" c="4" Y="340" T="12" H="30" />
<S H="24" L="24" o="6a7495" X="595" c="4" Y="340" T="12" P="0,0,0.3,0.2,45,0,0,0" />
</S>
<D>
<DS Y="300" X="50" />
</D>
<O />
<L><JP M1="0" M2="1" /><JP M1="0" M2="1" /> </L>
</Z>
</C>
In this XML the 0 is the Z value of the treadmill ground and the 1 is the Z value of the static wood ground above it.
5. Add MV="Infinity,-20" to the first JP tag. (You can make the 2nd value even lower, like -30 or -40)
<C>
<P />
<Z>
<S>
<S L="800" H="50" X="400" Y="400" T="0" P="1,0,20,0.2,0,1,0,0" />
<S L="100" H="30" X="50" Y="320" T="0" P="0,0,0.3,0,0,0,0,0" />
<S P="0,0,0.3,0.2,45,0,0,0" L="30" o="324650" X="600" c="4" Y="340" T="12" H="30" />
<S H="24" L="24" o="6a7495" X="595" c="4" Y="340" T="12" P="0,0,0.3,0.2,45,0,0,0" />
</S>
<D>
<DS Y="300" X="50" />
</D>
<O />
<L><JP M1="0" M2="1" MV="Infinity,-20" /><JP M1="0" M2="1" /> </L>
</Z>
</C>
6. Then add an AXIS value in both JP tags.
In the first tag you add AXIS="1,0" if you want the treadmill to shoot you to the right. If you want it to shoot you to the left then add AXIS="-1,0".
In the second JP tag you just reverse the AXIS value, which gives you AXIS="0,1" for the first example or AXIS="0,-1" for the second one.
<C>
<P />
<Z>
<S>
<S L="800" H="50" X="400" Y="400" T="0" P="1,0,20,0.2,0,1,0,0" />
<S L="100" H="30" X="50" Y="320" T="0" P="0,0,0.3,0,0,0,0,0" />
<S P="0,0,0.3,0.2,45,0,0,0" L="30" o="324650" X="600" c="4" Y="340" T="12" H="30" />
<S H="24" L="24" o="6a7495" X="595" c="4" Y="340" T="12" P="0,0,0.3,0.2,45,0,0,0" />
</S>
<D>
<DS Y="300" X="50" />
</D>
<O />
<L><JP AXIS="1,0" M1="0" M2="1" MV="Infinity,-20" /><JP AXIS="0,1"M1="0" M2="1" /> </L>
</Z>
</C>
Note: increasing the friction increases the strength of the treadmill.
 

Cyand

¡Ándale! ¡Ándale!
Brilliant!
 
Top
"Dev-TR" theme by Soulzone