upgrade to unity 6.1
This commit is contained in:
@@ -54,13 +54,13 @@ namespace HurricaneVR.Framework.Weapons.Bow
|
||||
{
|
||||
if (Flying)
|
||||
{
|
||||
transform.forward = Vector3.Slerp(transform.forward, Rigidbody.velocity.normalized, Time.deltaTime);
|
||||
transform.forward = Vector3.Slerp(transform.forward, Rigidbody.linearVelocity.normalized, Time.deltaTime);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void FixedUpdate()
|
||||
{
|
||||
if (Rigidbody.velocity.sqrMagnitude < 1f)
|
||||
if (Rigidbody.linearVelocity.sqrMagnitude < 1f)
|
||||
{
|
||||
Flying = false;
|
||||
}
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRArrow.cs
|
||||
uploadId: 736929
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRArrowLoader.cs
|
||||
uploadId: 736929
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRArrowPassthrough.cs
|
||||
uploadId: 736929
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRBowAnimator.cs
|
||||
uploadId: 736929
|
||||
|
||||
@@ -229,7 +229,7 @@ namespace HurricaneVR.Framework.Weapons.Bow
|
||||
{
|
||||
Arrow.Rigidbody.sleepThreshold = _previousArrowSleep;
|
||||
Arrow.Grabbable.CanBeGrabbed = true;
|
||||
Arrow.Rigidbody.velocity = direction * _shootSpeed;
|
||||
Arrow.Rigidbody.linearVelocity = direction * _shootSpeed;
|
||||
Arrow.Rigidbody.angularVelocity = Vector3.zero;
|
||||
Arrow.Flying = true;
|
||||
Arrow = null;
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRBowBase.cs
|
||||
uploadId: 736929
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRNockingPoint.cs
|
||||
uploadId: 736929
|
||||
|
||||
@@ -9,3 +9,10 @@ MonoImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 177300
|
||||
packageName: Hurricane VR - Physics Interaction Toolkit
|
||||
packageVersion: 2.9.3.a
|
||||
assetPath: Assets/HurricaneVR/Framework/Scripts/Weapons/Bow/HVRPhysicsBow.cs
|
||||
uploadId: 736929
|
||||
|
||||
Reference in New Issue
Block a user