blob: 8353a5aa967f02360786949b327865ad62b2e316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 刚体
/// </summary>
public sealed class PhysicsBody : MonoBehaviour
{
[SerializeField]
private Vector3 m_Velocity;
public Vector3 Velocity
{
get
{
return m_Velocity;
}
}
[SerializeField]
private float m_Weight;
public float Weight
{
get
{
return m_Weight;
}
}
[SerializeField]
private bool m_UseGravity;
public bool UseGravity
{
get
{
return m_UseGravity;
}
}
[SerializeField]
private Vector3 m_Accelaration;
public Vector3 Accelaration
{
get
{
return m_Accelaration;
}
}
[Tooltip("摩擦力")]
[SerializeField]
private float m_Frication;
}
|