-
-
Notifications
You must be signed in to change notification settings - Fork 15
RotorModule
Last Update: 01/10/202
This module is used for rotor part. It will calculate the thrust force taken from the environment variables and player input.
In this section I will explain what module you need to implement in your part for a correct operation.
It is necessary to add a couple of variables for a correct operation. The following table will show the variables you need.
| Variable | Save | Type | Description |
|---|---|---|---|
| isOn | [x] | Bool | Save if the rotor is on or off |
| flow_rate | [ ] | Double | It is used to control resource drain. |
| throttle | [ ] | Double | It is used to save throttle percentage. |
In the part component it is necessary to add an empty OnParts.
Your part needs to implement a game object named "Base"
This is a bit more complicated to implement, because you need to do more steps to get it working.
First you need to create an animation controller with two states, you can name it whatever you want.
Now you need to create a boolean parameter called "isOn"
Next you need the parameter created above and add it as a condition between states
Finally, you need add the animation controller into animator component in your part
Note: this is just the settings, if you want to make animations you need to modify the state you created earlier. If you want to know more about Unity animations, check this article





