Version: 5.3 (switch to 5.4b)
언어English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Physics.bounceThreshold

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

닫기

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

닫기

취소

Switch to Manual
public static var bounceThreshold: float;
public static float bounceThreshold;

Description

충돌하는 두 오브젝트의 상대 속도가, 이 값보다 작은 경우에 반동을 일으키지 않습니다.(기본설정 값 2) 반드시 양수로 설정해야 합니다.

이 값은 스크립트를 이용하는 대신 Edit->Project Settings->Physics에서 주로 값을 변경합니다.

          Physics.bounceThreshold = 1;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Physics.bounceThreshold = 1; } }