public OBBBox(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
     OBBposition          = colliderRead.positionOffset;
     OBBRotation          = colliderRead.staticNormal;
 }
 public OBBBoxCollider(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
     OBBposition          = colliderRead.positionOffset;
     OBBRotation          = colliderRead.staticRotation;
     isDraw = true;
 }
        public ColliderRead GetColliderRead()
        {
            ColliderRead mirror = colliderRead;

            if (appendTransform != null)
            {
                mirror.radius          *= appendTransform.lossyScale.x;
                mirror.staticDirection *= appendTransform.lossyScale.x;
                mirror.positionOffset  *= appendTransform.lossyScale.x;
            }
            return(mirror);
        }
 public CapsuleCollider(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
     isDraw = true;
 }
Ejemplo n.º 5
0
 public OBBBoxCollider(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
 }
Ejemplo n.º 6
0
 public SphereCollider(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
 }