오류는 이러했다..
BoxColliders does not support negative scale or size.
The effective box size has been forced positive and is likely to give unexpected collision geometry.
If you absolutely need to use negative scaling you can use the convex MeshCollider. Scene hierarchy path "TheStack/Block(Clone)"
해석을 해보니..물리 처리에서 발생한 문제를 알려주는것이였다.. 하지만.. 대체 왜 자꾸 나느지 몰라서 돌아버릴뻔했다.. 그래서 왜 이런 문제가 뜨는지 궁금해서 지피티한테 물어봤더니..?
void CreateRubble(Vector3 pos, Vector3 scale)
{
GameObject go = Instantiate(lastBlock.gameObject);
go.transform.parent = this.transform;
go.transform.localPosition = pos;
go.transform.localScale = scale; // ⚠️ 여기서 음수 들어가면 문제가 됨!
go.transform.localRotation = Quaternion.identity;
go.AddComponent<Rigidbody>();
go.name = "Rubble";
}
여기에 문제가 있다더라.. 그래서 오케 그럼 내가 한번 바꿔볼게 하고
void CreateRubble(Vector3 pos, Vector3 scale)
{
// 절댓값으로 처리해서 음수 스케일 방지
scale.x = Mathf.Abs(scale.x);
scale.y = Mathf.Abs(scale.y);
scale.z = Mathf.Abs(scale.z);
GameObject go = Instantiate(lastBlock.gameObject);
go.transform.parent = this.transform;
go.transform.localPosition = pos;
go.transform.localScale = scale;
go.transform.localRotation = Quaternion.identity;
go.AddComponent<Rigidbody>();
go.name = "Rubble";
}
이렇게 만들었다 그러면 방지를 해주기때문에 내가 될줄 알았다.. 하지만.. 뭐지? 싶더라 아니 그래도 똑같이 오류가 뜨더라 화가나서 아니 대체 뭐지 하고 보는데 boxcollisotion 이 위치에 - 가 들어가있으면 그런다 해서 다 봤는데 그러지도 않았다 진짜 화딱지 났는데 컴퓨터를 재부팅하니깐 갑자기 ㅋㅋㅋㅋ 되는것이 아닌가..? 와 진짜 어이가 너무 없어서 이거때문에 스트레스라는 스트레스 엄청 받았는데.. 정말 화가난다.. 하지만 해결되었으니 편안..
이러한 문제점 을 다시 만난다면
: 무조건 재부팅 우선적으로 해보고!!! 어떤오류가 난 건지 파악도 해보고 코드도 적어보고 해야 할것 같다..
내일 공부목표
: 내일은 마지막 게임을 할것이다 사실 지금도 시작은 했지만 정확하게 마무리하고 하기 위해서 내일도 빡빡하게 할것이다!! 그리고 나서 개인과제도 시작해보자잇!
쉽지 않지만 힘내서 해야한다.. 후