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