Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 |
// Dynamic Part class KDPart extends KActor abstract; // This should be an abstract and all of the parts of the robot should extend // this class and define they own properties like StaticMesh, DrawScale3d, ... // This is filled in by VehicleStateReceived in KRobot. var KRigidBodyState ReceiveState; var bool bReceiveStateNew; // The type of the part, eg. ARM, LEG, Pan-Tilt etc. var name Type; var KConstraint KJoint; var config float Weight; simulated function setJoint(KConstraint kc) { KJoint = kc; } // This even is for updating the state (position, velocity etc.) of the tire's karma // body when we get new information from the network. simulated event bool KUpdateState(out KRigidBodyState newState) { if(!bReceiveStateNew) return false; newState = ReceiveState; bReceiveStateNew = false; return true; } defaultproperties { bNoDelete=false bStasis=True bAlwaysRelevant=True bRotateToDesired=True AmbientGlow=48 Type='Part' Mass=0.1 bCollideActors=True CollisionHeight=8 CollisionRadius=4 StaticMesh=StaticMesh'USARSim_VehicleParts_Meshes.Test.TestBar' Begin Object Class=KarmaParamsRBFull Name=KParams0 KStartEnabled=True bKDoubleTickRate=True bHighDetailOnly=False bClientOnly=False KMaxAngularSpeed=100 KMaxSpeed=25000 KMass=0.1 KInertiaTensor(0)=0.4 KInertiaTensor(1)=0 KInertiaTensor(2)=0 KInertiaTensor(3)=0.4 KInertiaTensor(4)=0 KInertiaTensor(5)=0.4 KLinearDamping=0.0 KAngularDamping=0.0 KFriction=0.0 KRestitution=0.3 Name="KParams0" End Object KParams=KarmaParamsRBFull'KParams0' Weight=0.5 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |