Skip to content

Commit 79f9350

Browse files
committed
feat(Actions): Expose velocity
1 parent f33e2a0 commit 79f9350

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Assets/JCSUnity/Scripts/Actions/3D/JCS_3DThrowAction.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ public class JCS_3DThrowAction : MonoBehaviour
4444
private float mTime = 1.0f;
4545
#endif
4646

47+
[Separator("Check Variables (JCS_3DThrowAction)")]
48+
49+
[Tooltip("Velocity of the object.")]
50+
[SerializeField]
51+
[ReadOnly]
52+
private Vector3 mVelocity = Vector3.zero;
53+
4754
[Separator("Runtime Variables (JCS_3DThrowAction)")]
4855

4956
[Tooltip("Is this component active?")]
@@ -59,11 +66,10 @@ public class JCS_3DThrowAction : MonoBehaviour
5966
[SerializeField]
6067
private JCS_DeltaTimeType mDeltaTimeType = JCS_DeltaTimeType.DELTA_TIME;
6168

62-
private Vector3 mVelocity = Vector3.zero;
63-
6469
/* Setter & Getter */
6570

6671
public bool Active { get { return this.mActive; } set { this.mActive = value; } }
72+
public Vector3 Velocity { get { return this.mVelocity; } }
6773
public float GravityProduct { get { return this.mGravityProduct; } set { this.mGravityProduct = value; } }
6874
public JCS_DeltaTimeType DeltaTimeType { get { return this.mDeltaTimeType; } set { this.mDeltaTimeType = value; } }
6975

0 commit comments

Comments
 (0)