예제 #1
0
 public PhysicsComponent(PhysicsComponent pc)
 {
     _template = new TkPhysicsComponentData()
     {
         AllowTeleporter         = pc._template.AllowTeleporter,
         BlockTeleporter         = pc._template.BlockTeleporter,
         Data                    = pc._template.Data,
         SpinOnCreate            = pc._template.SpinOnCreate,
         DisableGravity          = pc._template.DisableGravity,
         InvisibleForInteraction = pc._template.InvisibleForInteraction,
         CameraInvisible         = pc._template.CameraInvisible,
         NoPlayerCollide         = pc._template.NoPlayerCollide,
         NoVehicleCollide        = pc._template.NoVehicleCollide,
         IgnoreModelOwner        = pc._template.IgnoreModelOwner,
         Floor                   = pc._template.Floor,
         Climbable               = pc._template.Climbable,
         TriggerVolume           = pc._template.TriggerVolume,
         SurfaceProperties       = pc._template.SurfaceProperties,
         VolumeTriggerType       = pc._template.VolumeTriggerType,
         RagdollData             = pc._template.RagdollData
     };
     data = new PhysicsData(pc.data);
 }
예제 #2
0
 public PhysicsComponent(TkPhysicsComponentData pcd)
 {
     _template = pcd;
     data      = new PhysicsData(pcd.Data);
 }
예제 #3
0
 //Default Constructor
 public PhysicsComponent()
 {
     _template = new TkPhysicsComponentData();
     data      = new PhysicsData();
 }