예제 #1
0
 public Collision(Vector3 relativeVelocity,
                  ITransform transform,
                  TestableGameObject gameObject,
                  ContactPoint[] contacts) : this()
 {
     this.relativeVelocity = relativeVelocity;
     this.transform        = transform;
     this.gameObject       = gameObject;
     this.contacts         = contacts;
 }
예제 #2
0
 public RaycastHit(Vector3 point,
                   Vector3 normal,
                   Vector3 barycentricCoordinate,
                   float distance,
                   int triangleIndex,
                   Vector2 textureCoord,
                   Vector2 textureCoord2,
                   Vector2 lightmapCoord,
                   TestableGameObject hit,
                   Collider collider) : this()
 {
     this.point  = point;
     this.normal = normal;
     this.barycentricCoordinate = barycentricCoordinate;
     this.distance      = distance;
     this.triangleIndex = triangleIndex;
     this.textureCoord  = textureCoord;
     this.textureCoord2 = textureCoord2;
     this.lightmapCoord = lightmapCoord;
     this.hit           = hit;
     this.collider      = collider;
 }
예제 #3
0
 public TestableComponent(TestableGameObject obj)
 {
     this.enabled = true;
     this.obj     = obj;
     obj.registerComponent(this);
 }