summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Physics/PhysicsBody.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-14 12:44:29 +0800
committerchai <chaifix@163.com>2020-10-14 12:44:29 +0800
commitdcaad8044384bce4f4358522108bf9a2481ee4e0 (patch)
treefb6cf33d05c66356b0c5d533e266aaa341210a3e /Assets/Scripts/Physics/PhysicsBody.cs
parent4056f06baea18d3c5ae23c4a022fc6ae6b135bb2 (diff)
*physics
Diffstat (limited to 'Assets/Scripts/Physics/PhysicsBody.cs')
-rw-r--r--Assets/Scripts/Physics/PhysicsBody.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/Assets/Scripts/Physics/PhysicsBody.cs b/Assets/Scripts/Physics/PhysicsBody.cs
new file mode 100644
index 00000000..812b77b7
--- /dev/null
+++ b/Assets/Scripts/Physics/PhysicsBody.cs
@@ -0,0 +1,43 @@
+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 Vector3 m_Accelaration;
+ public Vector3 Accelaration
+ {
+ get
+ {
+ return m_Accelaration;
+ }
+ }
+
+
+
+}