public Collision(Vector3 relativeVelocity, ITransform transform, TestableGameObject gameObject, ContactPoint[] contacts) : this() { this.relativeVelocity = relativeVelocity; this.transform = transform; this.gameObject = gameObject; this.contacts = contacts; }
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; }
public TestableComponent(TestableGameObject obj) { this.enabled = true; this.obj = obj; obj.registerComponent(this); }