Update 7 December 2019: V.1.1.
Is part visible?. Now you can make mech invisible if you want:
I present to you my new mod: Mech.
Example mech in second gif: LINK (Turret control mod required)
This mod contain Mech chassis type 1 part in Mechs category:
1.Few words about mod:
1.Behaviour of mech legs it is no physics. It is scriptable behaviour with animation.
Mech legs stand only on ground (terrain). They ignore all other objects.
Mech chassis size - this value scale all mech chassis.
Movement speed - speed of movement.
Movement acceleration - this value set how fast your mech will reach maximal speed and how fast will stop.
Back speed multiplier - this multiplier set the maximal back speed. If this value = 0.5, then back speed of your mech will be in 2 times less then forward speed.
Yaw rotation speed - speed of yaw rotation, degrees per second.
Increase legs width - distance between legs. Can be useful if you want to create your own part between legs.
Legs width scale - width scale of legs.
Torso width scale - width scale of torso.
If you change some of these three attributes, then 2 element of 3d model become invisible. Then you can create your 3d model of this:
Enable legs colliders - enable legs colliders.
Ground height increment - this value set the speed of setting mech height relatively ground.
Ground height increment = 1:
Ground height increment = 10:
First input controller (pitch by default) - forward/back movement. Have a 25 % deadzone. It is mean that still input more than 0.25 or less than -0.25 then your mech will not move. It is necessary decision for correct animation. Also it means that your mech can not move with speed less 25% of maximal.
Second input controller (roll by default) - turn left/right.
Third input controller (Activate 8 by default) - enable/disable mech. If this input controller = 0, then mech disabled and first and second input don't work. Also, mech will sit down a little bit.
- Use detacher with Activation group 8. Attach to this detacher block and set this block in position below legs:
Then your mech will not respawn underground. Also, i recommend use it if you dont want to explode your battlemech at start.
- If you will use turret control mod in your mech building, you should remember about specifisy features of turret control mod:
2.1. Create torso and arms of your mech as light as you can. Set the low massScale of almost all blocks.
2.2. All of your Horizontal turret rotator and Vertical turret rotator should have
massScale = 1.
2.3. Both rotators have a two attach points. Some blocks are attached to these attach points. These block should have
massScale = 1. Look at the picture:
LINK TO PICTURE
2.4. Should exist
TWOblocks between neighboring turret rotators. Thanks for @SajabAerospace for this information.
Dont scale the mechby the Overload or XML editor. Then mech will not work correct. Use
Mech chassis sizefor it.
5.VERY IMPORTANT THINGS:
After you change
Ground height increment, your mech can respawn underground, even you have attach the detacher with block to your mech:
Even if you back in designer and play again, it will not fix it. Your mech stiil will respawn under ground.
For fix it, just press "Restart":
But if you set very big value of
Ground height increment, 200 for example, your mech always will respawn underground. For this reason i recommend to you dont set
Ground height increment more than 50.
And i recommend you disableAircraftCollisions to detacher and attached block to detacher. If you dont disable collider, then this block can destroy your mech at start:
But even this dont work and your mech still explode at start, try to desrease `Ground height increment':
I have opened the source of the mod. You can download it and look, how it works. But many count of objects in Unity Editor and scripts called by Russian words, it can be difficult to understand, if you not from Russia.
loo.cs script it is the script which i have used to create animation in Unity and dont save the mod every time when i change something. Why loo? At first it should be script called "LookAt", but something happened wrong and it become "loo".
About my last post: i really leave SimplePlanes for a year, it is was not joke. But i have wrong calculate the date of my leaving. Current day can be more better for creating my goodbye post. And i have thinked that still i can create mods, i can create mech mod. I hope this mod can help in creating well working mechs. So, i have a few days, and after this leave SImplePlanes:)