*
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class Flywheel : MonoBehaviour
|
||||
{
|
||||
public uint teethCount = 129;
|
||||
public float mass = 6.6f;
|
||||
public float radius = 0.14f;
|
||||
public float inertia = 0.06468f;
|
||||
|
||||
[ContextMenu("Calculate inertia")]
|
||||
void CalcInertia()
|
||||
{
|
||||
inertia = (mass*radius*radius)*0.5f;
|
||||
}
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user