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;
 }
示例#5
0
 public OBBBoxCollider(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
 }
示例#6
0
 public SphereCollider(ColliderRead colliderRead, Transform appendtTransform)
 {
     this.colliderRead    = colliderRead;
     this.appendTransform = appendtTransform;
 }