Results 1 to 5 of 5

Thread: Wheels Problem

  1. #1

    Wheels Problem

    Hi, now i have a new problem with the Harrier. All the animations works perfect, except the "wheels" animation. The wheels don´t "turn" and they don´t attach to the rest of the model. When the Gears up, the wheels are motionless in his place and when the plane start to takeoff, the wheels do not "roll".

    Here i put the skeleton and cfgmodel:

    SKELETON

    class MLV_HarrierSkeleton: Plane

    {
    skeletonInherit="";
    isDiscrete = 1;
    skeletonBones[]=
    {

    "front uc door1","",
    "front uc door2","",
    "front uc door3","",
    "mainwheel door1","",
    "mainwheel door2","",
    "mainwheel door3","",
    "front_wheel","",
    "main_wheel","",
    "right_wheel","",
    "left_wheel","",
    "wheels1","front_wheel",
    "wheels2","main_wheel",
    "wheels3_1","left_wheel",
    "wheels3_2","right_wheel",
    "elevator left","",
    "elevator right","",
    "aileron left","",
    "aileron right","",
    "flaps left","",
    "flaps right","",
    "damageHide","",
    "rudder","",
    "flarecount", "",
    "nozzle_1_1",
    "",
    "nozzle_1_2",
    "",
    "nozzle_2_1",
    "",
    "nozzle_2_2",
    "",
    "ABSwitch","",
    "Engine",
    "",
    "Prop",
    "Engine",
    "Prop_blur",
    "Engine",""


    };
    };

    CFGMODEL


    class MLV_Harrier: Plane
    {
    sectionsInherit="";
    sections[]=
    {
    "zasleh","zbytek","nozzle_1_1"
    };
    skeletonName="MLV_HarrierSkeleton";
    class Animations
    {
    class damageHide
    {
    type="hide";
    source="damage";
    selection="damageHide";
    };

    class VTE_rotate_Wheels1
    {
    type = "rotationX";
    source = "wheel";
    selection = "wheels1";
    axis = "";
    memory = true;
    sourceAddress = "loop";
    minValue = 0;
    maxValue = 4;
    angle0 = 0;
    angle1 = "rad -360";
    };
    class VTE_rotate_Wheels2: VTE_rotate_Wheels1
    {
    selection = "wheels2";
    };

    class VTE_Rudder
    {
    type = "rotation";
    source = "rudder";
    selection = "rudder";
    axis = "axis_rudder";
    memory = true;
    sourceAddress = "clamp";
    minValue = -1;
    maxValue = 1;
    angle0 = "rad 25";
    angle1 = "rad -25";
    };
    class VTE_ElevRight
    {
    type = "rotation";
    source = "elevator";
    selection = "elevator";
    axis = "axis_elevator";
    memory = true;
    sourceAddress = "clamp";
    minValue = -1;
    maxValue = 1;
    angle0 = "rad 25";
    angle1 = "rad -25";
    };

    class VTE_aileronTleft
    {
    type = "rotation";
    source = "aileron";
    selection = "aileron left";
    axis = "axis_aileron_left";
    memory = true;
    sourceAddress = "clamp";
    minValue = -1;
    maxValue = 1;
    angle0 = "rad 25";
    angle1 = "rad -25";
    };
    class VTE_aileronTRight
    {
    type = "rotation";
    source = "aileron";
    selection = "aileron right";
    axis = "axis_aileron_right";
    memory = true;
    sourceAddress = "clamp";
    minValue = -1;
    maxValue = 1;
    angle0 = "rad 25";
    angle1 = "rad -25";
    };
    class VTE_FlapsRight
    {
    type = "rotation";
    source = "flap";
    selection = "flaps right";
    axis = "axis_flap_right";
    memory = true;
    sourceAddress = "clamp";
    minValue = 0;
    maxValue = 1;
    angle0 = "0";
    angle1 = "0.5";
    };
    class VTE_FlapsLeft
    {
    type = "rotation";
    source = "flap";
    selection = "flaps left";
    axis = "axis_flap_left";
    memory = true;
    sourceAddress = "clamp";
    minValue = 0;
    maxValue = 1;
    angle0 = "0";
    angle1 = "-0.5";
    };
    class LeftGear
    {
    type = "rotation";
    animPeriod = 2;
    selection = "left_wheel";
    axis = "axis_left_wheel";
    source = "gear";
    minValue = 0;
    maxValue = 0.90;
    angle0 = 0;
    angle1 = 1.270796;
    };
    class RightGear
    {
    type = "rotation";
    animPeriod = 2;
    selection = "right_wheel";
    axis = "axis_right_wheel";
    source = "gear";
    minValue = 0;
    maxValue = 0.90;
    angle0 = 0;
    angle1 = -1.270796;
    };
    class NoseGear
    {
    type = "rotation";
    animPeriod = 2;
    selection = "front_wheel";
    axis = "axis nosewheel";
    source = "gear";
    minValue = 0;
    maxValue = 1;
    angle0 = 0;
    angle1 = -1.815135;
    };

    class mainGear
    {
    type = "rotation";
    animPeriod = 2;
    selection = "main_wheel";
    axis = "axis mainwheel";
    source = "gear";
    minValue = 0;
    maxValue = 1;
    angle0 = 0;
    angle1 = 1.55;
    };

    class Frontdoor1
    {
    type="rotation";
    animPeriod=2;
    source = "gear";
    selection="front uc door1";
    axis="osa front uc door1";
    angle0=1.658056;
    angle1=0;
    };

    class Frontdoor2
    {
    type="rotation";
    animPeriod=2;
    source = "gear";
    selection="front uc door2";
    axis="osa front uc door2";
    angle0=1.570790;
    angle1=0;
    };


    class Frontdoor3
    {
    type="rotation";
    animPeriod=2;
    source = "gear";
    selection="front uc door3";
    axis="osa front uc door3";
    angle0=-1.570790;
    angle1=0;
    };

    class maindoor1
    {
    type="rotation";
    animPeriod=2;
    source = "gear";
    selection="mainwheel door1";
    axis="osa mainwheel door1";
    angle0=-1.658056;
    angle1=0;
    };

    class Maindoor2
    {
    type="rotation";
    animPeriod=2;
    source = "gear";
    selection="mainwheel door2";
    axis="osa mainwheel door2";
    angle0=-1.570790;
    angle1=0;
    };


    class Maindoor3
    {
    type="rotation";
    animPeriod=2;
    source = "gear";
    selection="mainwheel door3";
    axis="osa mainwheel door3";
    angle0=1.570790;
    angle1=0;
    };
    class Canopy
    {
    type ="rotation";
    animPeriod = 3;
    selection ="canopy";
    axis ="axis canopy";
    angle0 = 0;
    angle1 = -0.6;
    };

    class Wheels1 : Rotation
    {
    type = "rotationX";
    memory=1;
    sourceAddress="loop";
    source = "wheel";
    selection = "wheels1";
    axis = "axis_wheels1";
    minValue = 0; maxValue = 1;
    angle0 = 0; angle1 = "rad -360";
    };
    class Wheels2: Wheels1
    {
    selection = "wheels2";
    axis = "axis_wheels2";
    };
    class Wheels3: Wheels1
    {
    selection = "wheels3_1";
    axis = "axis_wheels3_1";
    };

    class flarecount {
    type = "rotationX";
    selection = "flarecount";
    axis = "osa_flarecount";
    memory = 1;
    minValue = 0;
    maxValue = 1;
    angle0 = "rad 0";
    angle1 = "rad +180";
    };

    class nozzle_1_1_1
    {
    type="rotation";
    source="thrustVector";
    selection="nozzle_1_1";
    axis="nozzle_1_1_axis";
    minValue=0;
    maxValue=0.900000;
    angle0=0.000000;
    angle1=1.570796;
    };
    class nozzle_1_2_1: nozzle_1_1_1
    {
    selection="nozzle_1_2";
    axis="nozzle_1_2_axis";
    };
    class nozzle_2_1_1
    {
    type="rotation";
    source="thrustVector";
    selection="nozzle_2_1";
    axis="nozzle_2_1_axis";
    minValue=0;
    maxValue=0.600000;
    angle0=0.000000;
    angle1=1.047198;
    };
    class nozzle_2_2_1: nozzle_2_1_1
    {
    selection="nozzle_2_2";
    axis="nozzle_2_2_axis";
    };

    class Engine: Rotation
    {
    type="rotationZ";
    source="Rotor";
    selection="engine";
    animPeriod=0.001000;
    axis="";
    memory=1;
    sourceAddress="loop";
    minValue=0.000000;
    maxValue=1.000000;
    angle0=0.000000;
    angle1="rad 360";
    };
    class ABSwitch
    {
    type = "rotation";
    source ="ABSwitch";
    sourceAddress = "clamp";
    minValue=0;
    maxValue=1;
    animperiod= 1;
    selection ="ABSwitch";
    axis = "osa_aileronT_right";
    angle0=0; // the start angle
    angle1=0.00017; // the end angle, in radians (= degrees/57.3 = degrees * 180/p)
    };
    };
    };
    I hope somebody could help me (...Gnat i need your help again!! )

    Thanks in advance!!

    Kind Regards

  2. #2
    - Make sure ONLY the wheel is named/called "wheels1", not the whole gear/strut.
    - Make sure the gear/strut is only named "front_wheel", not the wheel also.
    - Get rid of any overlaping animation (like class VTE_rotate_Wheels1), only ONE animation per named section.
    - Also try with-- axis = "";

    See how that goes

    Oh, you did it again!
    class Wheels1 : Rotation
    Wrong!
    Just do;
    class Wheels1
    {
    type = "rotationX";

  3. #3
    I did it all the tips that you said but nothing....the wheels seems to not be part of the model, it´s like the skeleton´s definition are wrong or something ...
    I´m completely blocked about this.

  4. #4
    Solved, the wheels (the model in O2) had a problem...i change that wheels and all works perfect!
    Thanks anyway!

    Kind Regards

  5. #5
    Maybe the old wheels were actually covered by 2 (conflicting) names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •