Пример #1
0
    private void Start()
    {
        _navPosition    = new Vec3();
        _navOrientation = new Navigation.Quaternion();

        _navLinearVelocity  = new Vec3();
        _navAngularVelocity = new Vec3();
    }
Пример #2
0
    private void Start()
    {
        _navPosition    = new Vec3();
        _navOrientation = new Navigation.Quaternion();

        _navLinearVelocity  = new Vec3();
        _navAngularVelocity = new Vec3();

        if (GetComponent <Rigidbody>() != null)
        {
            _rigidBody = GetComponent <Rigidbody>();
        }
    }