Tarian-塔利安
@sirakawabird
Wed, Aug 5, 2020 5:30 AM
1
教了跳躍方法還提到會有無限空中跳躍的問題結果沒有提供解法......
Tarian-塔利安
@sirakawabird
Wed, Aug 5, 2020 6:01 AM
把這當課外作業好了...
Tarian-塔利安
@sirakawabird
Wed, Aug 5, 2020 7:01 AM
public float margin = 0.1f;
bool IsGrounded() {
return Physics.Raycast(transform.position, -Vector3.up, margin);
if (IsGrounded()) {}
載入新的回覆
bool IsGrounded() {
return Physics.Raycast(transform.position, -Vector3.up, margin);
if (IsGrounded()) {}