From dcaad8044384bce4f4358522108bf9a2481ee4e0 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Oct 2020 12:44:29 +0800 Subject: *physics --- Assets/Scripts/Physics/PhysicsBody.cs | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Assets/Scripts/Physics/PhysicsBody.cs (limited to 'Assets/Scripts/Physics/PhysicsBody.cs') 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; + +/// +/// 刚体 +/// +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; + } + } + + + +} -- cgit v1.1-26-g67d0