freakjoe 3 Posted December 9, 2012 Hello everyone, I'm having a problem with a car that I'm working on : As soon as I start driving it begins to turn on it's side ending in it being flipped. I've asked some people before but they didn't know what the problem was either. I'd appreciate any input on how to fix the problem. Here is my config.cpp & model.cfg class CfgPatches { class FordGT { units[] = {FordGT}; weapons[] = {}; requiredVersion = 1.0; }; }; class CfgVehicles { class HMMWV; class FordGT: HMMWV { displayName= "2005 Ford GT"; model= "\FordGT\FordGT.p3d"; side=3; crew="Civilian2"; maxSpeed=300; transportSoldier=0; }; }; class CfgSkeletons { class car; class a2l_sheriffskel: car { isDiscrete=1; skeletonInherit=""; skeletonBones[]= { "damageHide", "", "drivewheel", "", "rightwiper", "", "leftwiper", "", "mph", "", "fuel", "", "temp", "", "oil", "", "volts", "", "chkengind", "", "fuelind", "", "doorind", "", "door1", "", "door2", "", "door3", "", "door4", "", "trunk", "", "hood", "", "wheel_1_damper", "", "wheel_1_steering", "wheel_1_damper", "wheel_1", "wheel_1_steering", "wheel_1_Damage", "wheel_1", "wheel_2_damper", "", "wheel_2_steering", "wheel_2_damper", "wheel_2", "wheel_2_steering", "wheel_2_Damage", "wheel_2", "wheel_3_damper", "", "wheel_3", "wheel_3_damper", "wheel_3_Damage", "wheel_3", "wheel_4_damper", "", "wheel_4", "wheel_4_damper", "wheel_4_Damage", "wheel_4" }; }; class a2l_sheriff: car { isDiscrete=1; skeletonInherit=""; skeletonBones[]= { "secondary","", "speedradarswitch","", "directleft","", "siren","", "direct","", "mdt","", "damageHide","", "drivewheel","", "rightwiper","", "leftwiper","", "mph","", "fuel","", "temp","", "oil","", "volts","", "chkengind","", "fuelind","", "doorind","", "door1","", "door2","", "door3","", "door4","", "trunk","", "hood","", "wheel_1_damper","", "wheel_1_steering","wheel_1_damper", "wheel_1","wheel_1_steering", "wheel_1_Damage","wheel_1", "wheel_2_damper","", "wheel_2_steering","wheel_2_damper", "wheel_2","wheel_2_steering", "wheel_2_Damage","wheel_2", "wheel_3_damper","", "wheel_3","wheel_3_damper", "wheel_3_Damage","wheel_3", "wheel_4_damper","", "wheel_4","wheel_4_damper", "wheel_4_Damage","wheel_4" }; }; class a2l_police: a2l_sheriff {}; }; class CfgModels { class default {}; class Vehicle: default { sectionsInherit=""; sections[]= { "cislo", "grupa", "side", "sektor", "clan", "podsvit pristroju", "poskozeni", "L svetlo", "P svetlo", "zasleh" }; }; class Car: Vehicle { sectionsInherit="Vehicle"; sections[]= { "ammo", "sklo predni p", "sklo predni l", "zadni svetlo", "brzdove svetlo" }; }; class dhi_cvpi_p71: Car { skeletonName="dhi_cvpi_p71"; sectionsInherit="car"; sections[]= { "backuplight", "door1light", "door3light", "windowtint", "hubcaps", "PI svetlo", "zbytek" }; class animations { class damageHide { type="hide"; source="damage"; selection="damageHide"; }; class Hood_damage: damageHide { selection="hood"; }; class Aerial_damage: damageHide { selection="aerial"; }; class MirrorHide_damage: damageHide { selection="MirrorHide"; }; class CBHide_damage: damageHide { selection="CBHide"; }; class wheel_1_Damage: damageHide { selection="wheel_1_Damage"; }; class wheel_2_Damage: damageHide { selection="wheel_2_Damage"; }; class wheel_3_Damage: damageHide { selection="wheel_3_Damage"; }; class wheel_4_Damage: damageHide { selection="wheel_4_Damage"; }; class destruct_heigh_ppt { type="translation"; source="damage"; selection="wheel_1_damper"; axis="land_move_axis"; memory=1; minValue=0.999999; maxValue=1.000000; offset0=0; offset1=-0.280000; }; class destruct_heigh_pdt: destruct_heigh_ppt { selection="wheel_2_damper"; }; class destruct_heigh_pprt: destruct_heigh_ppt { selection="wheel_3_damper"; offset1=-0.380000; }; class destruct_heigh_pzt: destruct_heigh_ppt { selection="wheel_4_damper"; offset1=-0.380000; }; class DrivingWheel { type="rotation"; source="drivingWheel"; selection="drivewheel"; axis="drivewheel_axis"; minValue=-1; maxValue=1; angle0=8; angle1=-8; }; class Steering_1_1 { type="rotationY"; source="drivingWheel"; selection="wheel_1_steering"; axis="wheel_1_steering_axis"; memory=1; minValue="rad -90"; maxValue="rad +90"; angle0=1.047198; angle1=-1.047198; }; class Steering_1_2: Steering_1_1 { selection="wheel_2_steering"; axis="wheel_2_steering_axis"; angle0=1.047198; angle1=-1.047198; }; class Wheel_1_1 { type="rotationX"; source="wheel"; selection="wheel_1"; axis=""; memory=1; sourceAddress="loop"; minValue=0; maxValue=1; angle0=0; angle1="rad -360"; }; class Wheel_1_2: Wheel_1_1 { selection="wheel_2"; }; class Wheel_2_1: Wheel_1_1 { selection="wheel_3"; }; class Wheel_2_2: Wheel_1_1 { selection="wheel_4"; }; class Wheel_1_1_Damper { type="translationY"; source="damper"; selection="wheel_1_damper"; axis=""; minValue=-0.090000; maxValue=1; memory=1; }; class Wheel_1_2_Damper: Wheel_1_1_Damper { selection="wheel_2_damper"; }; class Wheel_2_1_Damper: Wheel_1_1_Damper { selection="wheel_3_damper"; }; class Wheel_2_2_Damper: Wheel_1_1_Damper { selection="wheel_4_damper"; }; class ani_door1 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door1"; axis="axis_door1"; angle0=0; angle1=0.959000; memory="true"; minValue=0; maxValue=1; }; class ani_door2 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door2"; axis="axis_door2"; angle0=0; angle1=1.300000; memory="true"; minValue=0; maxValue=1; }; class ani_door3 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door3"; axis="axis_door3"; angle0=0; angle1=-0.959000; memory="true"; minValue=0; maxValue=1; }; class ani_door4 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door4"; axis="axis_door4"; angle0=0; angle1=-1.300000; memory="true"; minValue=0; maxValue=1; }; class ani_trunk { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="trunk"; axis="axis_trunk"; angle0=0; angle1=-1.4; minValue=0; maxValue=2; }; class ani_hood { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="hood"; axis="axis_hood"; angle0=0; angle1=-2; minValue=-10; maxValue=10; }; class ani_fuel { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="fuel"; axis="axis_fuel"; angle0=0; angle1=1.850000; memory="true"; minValue=0; maxValue=1; }; class ani_temp { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="temp"; axis="axis_temp"; angle0=0; angle1=-1.850000; memory="true"; minValue=0; maxValue=1; }; class ani_oil { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="oil"; axis="axis_oil"; angle0=0; angle1=1.850000; memory="true"; minValue=0; maxValue=1; }; class ani_volts { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="volts"; axis="axis_volts"; angle0=0; angle1=-1.850000; memory="true"; minValue=0; maxValue=1; }; class IndicatorSpeed { animPeriod=0; type="rotation"; source="speed"; selection="mph"; axis="axis_mph"; memory=0; minValue=2.000000; maxValue=60; angle0=0.000000; angle1="rad -320"; }; class ani_fuelind { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="fuelind"; axis="axis_ind"; angle0=0; angle1=3; minValue=0; maxValue=1; }; class ani_chkengind { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="chkengind"; axis="axis_ind"; angle0=0; angle1=3; minValue=0; maxValue=1; }; class ani_doorind { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="doorind"; axis="axis_ind"; angle0=0; angle1=3; minValue=0; maxValue=1; }; }; }; class a2l_sheriff: Car { skeletonName="a2l_sheriff"; sectionsInherit="car"; sections[]= { "backuplight","", "LB1","", "LB2","", "LB3","", "LB4","", "LB5","", "LB6","", "LB7","", "LB8","", "DA1","", "DA2","", "DA3","", "DA4","", "DA5","", "DA6","", "DA7","", "DA8","", "DL1","", "DL2","", "DL3","", "DL4","", "DL5","", "DL6","", "MDTPG1","", "MDTPG2","", "MDTPG3","", "SPD1","", "SPD2","", "SPD3","", "SPD4","", "SPD5","", "SPD6","", "SPD7","", "SPD8","", "SPD9","", "k9","", "METRO","", "hubcaps","", "decklights","", "lightbar","", "pushbumperguards","", "mdtlights","", "PI svetlo","", "zbytek","" }; class animations { class damageHide { type="hide"; source="damage"; selection="damageHide"; }; class Hood_damage: damageHide { selection="hood"; }; class Aerial_damage: damageHide { selection="aerial"; }; class MirrorHide_damage: damageHide { selection="MirrorHide"; }; class CBHide_damage: damageHide { selection="CBHide"; }; class wheel_1_Damage: damageHide { selection="wheel_1_Damage"; }; class wheel_2_Damage: damageHide { selection="wheel_2_Damage"; }; class wheel_3_Damage: damageHide { selection="wheel_3_Damage"; }; class wheel_4_Damage: damageHide { selection="wheel_4_Damage"; }; class destruct_heigh_ppt { type="translation"; source="damage"; selection="wheel_1_damper"; axis="land_move_axis"; memory=1; minValue=0.999999; maxValue=1.000000; offset0=0; offset1=-0.280000; }; class destruct_heigh_pdt: destruct_heigh_ppt { selection="wheel_2_damper"; }; class destruct_heigh_pprt: destruct_heigh_ppt { selection="wheel_3_damper"; offset1=-0.380000; }; class destruct_heigh_pzt: destruct_heigh_ppt { selection="wheel_4_damper"; offset1=-0.380000; }; class DrivingWheel { type="rotation"; source="drivingWheel"; selection="drivewheel"; axis="drivewheel_axis"; minValue=-1; maxValue=1; angle0=4; angle1=-4; }; class Steering_1_1 { type="rotationY"; source="drivingWheel"; selection="wheel_1_steering"; axis="wheel_1_steering_axis"; memory=1; minValue="rad -90"; maxValue="rad +90"; angle0=1.047198; angle1=-1.047198; }; class Steering_1_2: Steering_1_1 { selection="wheel_2_steering"; axis="wheel_2_steering_axis"; angle0=1.047198; angle1=-1.047198; }; class Wheel_1_1 { type="rotationX"; source="wheel"; selection="wheel_1"; axis=""; memory=1; sourceAddress="loop"; minValue=0; maxValue=1; angle0=0; angle1="rad -360"; }; class Wheel_1_2: Wheel_1_1 { selection="wheel_2"; }; class Wheel_2_1: Wheel_1_1 { selection="wheel_3"; }; class Wheel_2_2: Wheel_1_1 { selection="wheel_4"; }; class Wheel_1_1_Damper { type="translationY"; source="damper"; selection="wheel_1_damper"; axis=""; minValue=-0.090000; maxValue=1; memory=1; }; class Wheel_1_2_Damper: Wheel_1_1_Damper { selection="wheel_2_damper"; }; class Wheel_2_1_Damper: Wheel_1_1_Damper { selection="wheel_3_damper"; }; class Wheel_2_2_Damper: Wheel_1_1_Damper { selection="wheel_4_damper"; }; class ani_door1 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door1"; axis="axis_door1"; angle0=0; angle1=0.959000; memory="true"; minValue=0; maxValue=1; }; class ani_door2 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door2"; axis="axis_door2"; angle0=0; angle1=1.300000; memory="true"; minValue=0; maxValue=1; }; class ani_door3 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door3"; axis="axis_door3"; angle0=0; angle1=-0.959000; memory="true"; minValue=0; maxValue=1; }; class ani_door4 { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="door4"; axis="axis_door4"; angle0=0; angle1=-1.300000; memory="true"; minValue=0; maxValue=1; }; class ani_trunk { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="trunk"; axis="axis_trunk"; angle0=0; angle1=-1.4; minValue=0; maxValue=2; }; class ani_hood { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="hood"; axis="axis_hood"; angle0=0; angle1=-2; minValue=0; maxValue=2; }; class ani_fuel { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="fuel"; axis="axis_fuel"; angle0=0; angle1=1.850000; memory="true"; minValue=0; maxValue=1; }; class ani_temp { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="temp"; axis="axis_temp"; angle0=0; angle1=-1.850000; memory="true"; minValue=0; maxValue=1; }; class ani_oil { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="oil"; axis="axis_oil"; angle0=0; angle1=1.850000; memory="true"; minValue=0; maxValue=1; }; class ani_volts { type="rotation"; source="FiveSecondAnim"; sourceAddress="clamp"; selection="volts"; axis="axis_volts"; angle0=0; angle1=-1.850000; memory="true"; minValue=0; maxValue=1; }; class IndicatorSpeed { animPeriod=0; type="rotation"; source="speed"; selection="mph"; axis="axis_mph"; memory=0; minValue=2.000000; maxValue=60; angle0=0.000000; angle1="rad -320"; }; class ani_fuelind { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="fuelind"; axis="axis_ind"; angle0=0; angle1=3; minValue=0; maxValue=1; }; class ani_chkengind { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="chkengind"; axis="axis_ind"; angle0=0; angle1=3; minValue=0; maxValue=1; }; class ani_doorind { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="doorind"; axis="axis_ind"; angle0=0; angle1=3; minValue=0; maxValue=1; }; class ani_siren { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="secondary"; axis="axis_switches"; angle0=0; angle1=3; memory="true"; minValue=0; maxValue=1; }; class ani_direct { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="directleft"; axis="axis_switches"; angle0=0; angle1=3; memory="true"; minValue=0; maxValue=1; }; class ani_mdt { type="rotation"; source="OneSecondAnim"; sourceAddress="clamp"; selection="mdt"; axis="axis_mdt"; angle0=0; angle1=-1.200000; memory="true"; minValue=0; maxValue=1; }; class ani_speedradarswitch { type="rotation"; source="Zeroanimation"; sourceAddress="clamp"; selection="speedradarswitch"; axis="axis_switches"; angle0=0; angle1=3; memory="true"; minValue=0; maxValue=1; }; }; }; class FordGT : a2l_sheriff {}; }; Here is a picture of the flipped car... : Thanks in advance, FreakJoe Share this post Link to post Share on other sites
soul_assassin 1750 Posted December 9, 2012 Most likely the center of gravity in the geometry LOD is too high up? Try lowering it by assigning more mass to lower verts. Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 10, 2012 The "wheel" animation is attached to a GEOMETRY object ? i.e. one of those "wheel_xxxx" named sections is accidently defined on a piece of the Geometry lod so ..... when you drive forward something hits the ground and flips you. Share this post Link to post Share on other sites
freakjoe 3 Posted December 10, 2012 Quote Gnat;2262773']The "wheel" animation is attached to a GEOMETRY object ? Not as far as I know? I've also tried assigning more mass to lower vertices in the Geometry Lod, it still keeps flipping. As additional explanation : It doesn't just flip, it slowly starts turning on it's side. Share this post Link to post Share on other sites
max power 21 Posted December 11, 2012 You have ground contact points? Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 11, 2012 Following on from Max's hint, do you have your Land Contact point named incorrectly? Share this post Link to post Share on other sites
freakjoe 3 Posted December 11, 2012 Quote Gnat;2263161']Following on from Max's hint' date=' do you have your Land Contact point named incorrectly?[/quote']I didn't even know they had to be named :O Can you post the correct names for each point? ---------- Post added at 14:29 ---------- Previous post was at 14:05 ---------- Alright, I just figured it out. It's almost driveable now :) Thanks for your advice guys. Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 12, 2012 Good to hear Would help if you could explain the solution so others who might have this problem can learn. Share this post Link to post Share on other sites
freakjoe 3 Posted December 12, 2012 As I've said, I've pretty much just forgot to name my Landcontact LOD correctly. Incase somebody is having the same problems, make sure that you : 1. Have a Landcontact LOD 2. Have points in there :) 3. Have them named correctly, in my case the names were "wheel_1_damper" , "wheel_2_damper" .... That was everything it needed for me. Share this post Link to post Share on other sites