diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody')
72 files changed, 0 insertions, 1926 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs deleted file mode 100644 index 2d313eb4..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs +++ /dev/null @@ -1,57 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force to the rigidbody that simulates explosion effects. Returns Success.")]
- public class AddExplosionForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The force of the explosion")]
- public SharedFloat explosionForce;
- [Tooltip("The position of the explosion")]
- public SharedVector3 explosionPosition;
- [Tooltip("The radius of the explosion")]
- public SharedFloat explosionRadius;
- [Tooltip("Applies the force as if it was applied from beneath the object")]
- public float upwardsModifier = 0;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddExplosionForce(explosionForce.Value, explosionPosition.Value, explosionRadius.Value, upwardsModifier, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- explosionForce = 0;
- explosionPosition = Vector3.zero;
- explosionRadius = 0;
- upwardsModifier = 0;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta deleted file mode 100644 index 46e4e7f6..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddExplosionForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: ccb592e850d4c734995a2a1c3f930b62
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs deleted file mode 100644 index 9e7ff1a9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [RequiredComponent(typeof(Rigidbody))]
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force to the rigidbody. Returns Success.")]
- public class AddForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector3 force;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddForce(force.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- if (force != null) {
- force.Value = Vector3.zero;
- }
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta deleted file mode 100644 index 2ff832db..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5748d4214b99b8c49ba67902a8495a30
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs deleted file mode 100644 index c76f34c1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs +++ /dev/null @@ -1,51 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force at the specified position to the rigidbody. Returns Success.")]
- public class AddForceAtPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector3 force;
- [Tooltip("The position of the force")]
- public SharedVector3 position;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddForceAtPosition(force.Value, position.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- force = Vector3.zero;
- position = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta deleted file mode 100644 index e299a9ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddForceAtPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c3938bcd4e88b45419aa86adee51a2c2
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs deleted file mode 100644 index 57e1a9d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a force to the rigidbody relative to its coordinate system. Returns Success.")]
- public class AddRelativeForce : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of force to apply")]
- public SharedVector3 force;
- [Tooltip("The type of force")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddRelativeForce(force.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- force = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta deleted file mode 100644 index be56eac2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeForce.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1de05a2b6197b2d4b9da1c36bf382649
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs deleted file mode 100644 index ec901665..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs +++ /dev/null @@ -1,43 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a torque to the rigidbody relative to its coordinate system. Returns Success.")]
- public class AddRelativeTorque : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of torque to apply")]
- public SharedVector3 torque;
- [Tooltip("The type of torque")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- rigidbody.AddRelativeTorque(torque.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- torque = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta deleted file mode 100644 index 3bba15eb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddRelativeTorque.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 71136c1193309b24c93d450b5f2e47be
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs deleted file mode 100644 index 35282d09..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs +++ /dev/null @@ -1,48 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Applies a torque to the rigidbody. Returns Success.")]
- public class AddTorque : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The amount of torque to apply")]
- public SharedVector3 torque;
- [Tooltip("The type of torque")]
- public ForceMode forceMode = ForceMode.Force;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.AddTorque(torque.Value, forceMode);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- torque = Vector3.zero;
- forceMode = ForceMode.Force;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta deleted file mode 100644 index 4e6e47c3..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/AddTorque.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 88c726c1cb324e6429637f55d36c3d01
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs deleted file mode 100644 index 9aed491c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the angular drag of the Rigidbody. Returns Success.")]
- public class GetAngularDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular drag of the Rigidbody")]
- [RequiredField]
- public SharedFloat storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.angularDrag;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta deleted file mode 100644 index f82dda03..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 5fb34b334a02db64db2d6a2fb2448be5
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs deleted file mode 100644 index 556f52e1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the angular velocity of the Rigidbody. Returns Success.")]
- public class GetAngularVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular velocity of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.angularVelocity;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta deleted file mode 100644 index c4f98927..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 492dc3a13d07ed149bcd19d36e2f7ee7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs deleted file mode 100644 index 59c7429c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the center of mass of the Rigidbody. Returns Success.")]
- public class GetCenterOfMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of mass of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.centerOfMass;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta deleted file mode 100644 index 8c175632..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetCenterOfMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: b993020e1d60f5242a7e3618501f871e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs deleted file mode 100644 index 423e79b0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the drag of the Rigidbody. Returns Success.")]
- public class GetDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The drag of the Rigidbody")]
- [RequiredField]
- public SharedFloat storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.drag;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta deleted file mode 100644 index ab90b18b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 69bd087f6899c604f82441b108ead2a8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs deleted file mode 100644 index 0a26f2c1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the freeze rotation value of the Rigidbody. Returns Success.")]
- public class GetFreezeRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The freeze rotation value of the Rigidbody")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.freezeRotation;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta deleted file mode 100644 index dad7aad7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetFreezeRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 889065cfad95df04a802761fcccb8359
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs deleted file mode 100644 index ee981ed7..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the is kinematic value of the Rigidbody. Returns Success.")]
- public class GetIsKinematic : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The is kinematic value of the Rigidbody")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.isKinematic;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta deleted file mode 100644 index 0bef7e35..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a531151d14b8a9640be8d499d9db4538
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs deleted file mode 100644 index 62d0138b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the mass of the Rigidbody. Returns Success.")]
- public class GetMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mass of the Rigidbody")]
- [RequiredField]
- public SharedFloat storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.mass;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta deleted file mode 100644 index 71b86955..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2638ca749ba5a404f84fd72811b16c81
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs deleted file mode 100644 index 9f4dc201..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the position of the Rigidbody. Returns Success.")]
- public class GetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.position;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta deleted file mode 100644 index 732ae424..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 25f9090c180831b4daaa1a24894681ac
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs deleted file mode 100644 index 53d4101f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the rotation of the Rigidbody. Returns Success.")]
- public class GetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Rigidbody")]
- [RequiredField]
- public SharedQuaternion storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.rotation;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta deleted file mode 100644 index 539000a1..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 937400bc82220b543aa9b3074f17f4d6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs deleted file mode 100644 index dc20ef51..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the use gravity value of the Rigidbody. Returns Success.")]
- public class GetUseGravity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The use gravity value of the Rigidbody")]
- [RequiredField]
- public SharedBool storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.useGravity;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta deleted file mode 100644 index ab211284..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetUseGravity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1d7358afc7810ca4aa2ae8a2cd4b9e6e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs deleted file mode 100644 index de66c4ad..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs +++ /dev/null @@ -1,46 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the velocity of the Rigidbody. Returns Success.")]
- public class GetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody")]
- [RequiredField]
- public SharedVector3 storeValue;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- storeValue.Value = rigidbody.velocity;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- storeValue = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta deleted file mode 100644 index 62f5920f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/GetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 9c18365eb6865164ebb5b0057dcc6bb4
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs deleted file mode 100644 index 1144ea46..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Returns Success if the Rigidbody is kinematic, otherwise Failure.")]
- public class IsKinematic : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody.isKinematic ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta deleted file mode 100644 index ec59f524..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 30be28b36412643418c2e61640147eac
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs deleted file mode 100644 index 1252e643..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Returns Success if the Rigidbody is sleeping, otherwise Failure.")]
- public class IsSleeping : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody.IsSleeping() ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta deleted file mode 100644 index c0c0a203..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/IsSleeping.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 37e8153613f519240a11c3f6583d1030
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs deleted file mode 100644 index 81ac9191..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Moves the Rigidbody to the specified position. Returns Success.")]
- public class MovePosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The new position of the Rigidbody")]
- public SharedVector3 position;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.MovePosition(position.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- position = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta deleted file mode 100644 index 75fc531c..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MovePosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 87176662744aee049b8af51b01bcb526
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs deleted file mode 100644 index 9133cb77..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Rotates the Rigidbody to the specified rotation. Returns Success.")]
- public class MoveRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The new rotation of the Rigidbody")]
- public SharedQuaternion rotation;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.MoveRotation(rotation.Value);
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta deleted file mode 100644 index 65a02522..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/MoveRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: f1ba2e66d5ca98a4ba4020b4eff4da6e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs deleted file mode 100644 index c08194d2..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the angular drag of the Rigidbody. Returns Success.")]
- public class SetAngularDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular drag of the Rigidbody")]
- public SharedFloat angularDrag;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.angularDrag = angularDrag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularDrag = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta deleted file mode 100644 index bfa75a99..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 2883595af7ee1c649ae45353482beed8
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs deleted file mode 100644 index 78f35260..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the angular velocity of the Rigidbody. Returns Success.")]
- public class SetAngularVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The angular velocity of the Rigidbody")]
- public SharedVector3 angularVelocity;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.angularVelocity = angularVelocity.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- angularVelocity = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta deleted file mode 100644 index 1c2b78f9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetAngularVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8652396368a6dad4eb6e1259e680595c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs deleted file mode 100644 index f57cb25a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the center of mass of the Rigidbody. Returns Success.")]
- public class SetCenterOfMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The center of mass of the Rigidbody")]
- public SharedVector3 centerOfMass;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.centerOfMass = centerOfMass.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- centerOfMass = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta deleted file mode 100644 index 3a229ffb..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetCenterOfMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 594f2d37fbfc0d545a0377cf63543f41
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs deleted file mode 100644 index 0b174602..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the constraints of the Rigidbody. Returns Success.")]
- public class SetConstraints : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The constraints of the Rigidbody")]
- public RigidbodyConstraints constraints = RigidbodyConstraints.None;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.constraints = constraints;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- constraints = RigidbodyConstraints.None;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta deleted file mode 100644 index 8affb848..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetConstraints.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: dd098240974b0184ca8c66cb6e450753
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs deleted file mode 100644 index e755cf6e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the drag of the Rigidbody. Returns Success.")]
- public class SetDrag : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The drag of the Rigidbody")]
- public SharedFloat drag;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.drag = drag.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- drag = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta deleted file mode 100644 index 370e0d8b..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetDrag.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8984a684f33e6644abbb9cfe6c9068d9
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs deleted file mode 100644 index 9b6342ba..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the freeze rotation value of the Rigidbody. Returns Success.")]
- public class SetFreezeRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The freeze rotation value of the Rigidbody")]
- public SharedBool freezeRotation;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.freezeRotation = freezeRotation.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- freezeRotation = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta deleted file mode 100644 index 67fd3cac..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetFreezeRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 4160755a1f5174546b6ccbabff469187
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs deleted file mode 100644 index 49ead821..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the is kinematic value of the Rigidbody. Returns Success.")]
- public class SetIsKinematic : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The is kinematic value of the Rigidbody")]
- public SharedBool isKinematic;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.isKinematic = isKinematic.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- isKinematic = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta deleted file mode 100644 index 78a73857..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetIsKinematic.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 6d93194d82815024cadf3f4f842666d0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs deleted file mode 100644 index 48c1da8f..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the mass of the Rigidbody. Returns Success.")]
- public class SetMass : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The mass of the Rigidbody")]
- public SharedFloat mass;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.mass = mass.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- mass = 0;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta deleted file mode 100644 index b1ab1a4e..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetMass.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 82f7a92bee3553d49bbb1ebabfaffc12
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs deleted file mode 100644 index 86b564a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the position of the Rigidbody. Returns Success.")]
- public class SetPosition : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The position of the Rigidbody")]
- public SharedVector3 position;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.position = position.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- position = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta deleted file mode 100644 index 62b9cac0..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetPosition.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 8a33b86eb94a87c449e1f3344973cc50
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs deleted file mode 100644 index ffa231a8..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Stores the rotation of the Rigidbody. Returns Success.")]
- public class SetRotation : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The rotation of the Rigidbody")]
- public SharedQuaternion rotation;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.rotation = rotation.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- rotation = Quaternion.identity;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta deleted file mode 100644 index cf104f74..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetRotation.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: c5ac2e84278f4a845ba47d1e4469e869
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs deleted file mode 100644 index a95330a5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the use gravity value of the Rigidbody. Returns Success.")]
- public class SetUseGravity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The use gravity value of the Rigidbody")]
- public SharedBool isKinematic;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.useGravity = isKinematic.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- isKinematic = false;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta deleted file mode 100644 index 8e3be08a..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetUseGravity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 19548f438ad1c684180d41713cbdeb76
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs deleted file mode 100644 index e488ebc5..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs +++ /dev/null @@ -1,45 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Sets the velocity of the Rigidbody. Returns Success.")]
- public class SetVelocity : Action
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
- [Tooltip("The velocity of the Rigidbody")]
- public SharedVector3 velocity;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.velocity = velocity.Value;
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- velocity = Vector3.zero;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta deleted file mode 100644 index c1756a01..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/SetVelocity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 3e3fc3ca798c87644a42b1c930fff3f0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs deleted file mode 100644 index 796f7f29..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Forces the Rigidbody to sleep at least one frame. Returns Success.")]
- public class Sleep : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.Sleep();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta deleted file mode 100644 index dc6ae392..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/Sleep.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: 1683ca7168c4ce74db4396c4d3cb65ce
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs deleted file mode 100644 index 1cdcb762..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Returns Success if the Rigidbody is using gravity, otherwise Failure.")]
- public class UseGravity : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- return rigidbody.useGravity ? TaskStatus.Success : TaskStatus.Failure;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta deleted file mode 100644 index 446f7f0d..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/UseGravity.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: a0d11b67c4ae058469e7f7b00db7103f
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs deleted file mode 100644 index fcb4fe74..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs +++ /dev/null @@ -1,42 +0,0 @@ -using UnityEngine;
-
-namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityRigidbody
-{
- [TaskCategory("Basic/Rigidbody")]
- [TaskDescription("Forces the Rigidbody to wake up. Returns Success.")]
- public class WakeUp : Conditional
- {
- [Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")]
- public SharedGameObject targetGameObject;
-
- // cache the rigidbody component
- private Rigidbody rigidbody;
- private GameObject prevGameObject;
-
- public override void OnStart()
- {
- var currentGameObject = GetDefaultGameObject(targetGameObject.Value);
- if (currentGameObject != prevGameObject) {
- rigidbody = currentGameObject.GetComponent<Rigidbody>();
- prevGameObject = currentGameObject;
- }
- }
-
- public override TaskStatus OnUpdate()
- {
- if (rigidbody == null) {
- Debug.LogWarning("Rigidbody is null");
- return TaskStatus.Failure;
- }
-
- rigidbody.WakeUp();
-
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- targetGameObject = null;
- }
- }
-}
\ No newline at end of file diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta b/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta deleted file mode 100644 index d65620b9..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Basic Tasks/Rigidbody/WakeUp.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2
-guid: d4314af88b4d86046bdac1f10f6f9a47
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
|