fr.jeanf.universal.player 0.8.46 → 0.8.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,7 +53,10 @@ namespace jeanf.universalplayer
53
53
  {
54
54
  nonPhysicalHand.SetActive(false);
55
55
  }
56
- rb.linearVelocity = (target.position - transform.position)/Time.deltaTime;
56
+ }
57
+ void FixedUpdate()
58
+ {
59
+ rb.linearVelocity = (target.position - transform.position)/Time.fixedDeltaTime;
57
60
 
58
61
 
59
62
  Quaternion rotationDifference = target.rotation * Quaternion.Inverse(transform.rotation*offset);
@@ -61,10 +64,9 @@ namespace jeanf.universalplayer
61
64
 
62
65
  Vector3 rotationDifferenceInDegree = angleInDegree * rotationAxis;
63
66
 
64
- rb.angularVelocity = (rotationDifferenceInDegree * Mathf.Deg2Rad/Time.deltaTime);
67
+ rb.angularVelocity = (rotationDifferenceInDegree * Mathf.Deg2Rad/Time.fixedDeltaTime);
65
68
  }
66
69
 
67
-
68
70
  private void CheckXRStatus()
69
71
  {
70
72
  if (BroadcastControlsStatus.controlScheme == BroadcastControlsStatus.ControlScheme.XR)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fr.jeanf.universal.player",
3
3
 
4
- "version": "0.8.46",
4
+ "version": "0.8.48",
5
5
 
6
6
  "displayName": "Universal Player",
7
7
  "description": "This package contains a universal player working in URP & HDRP for Mouse+Keyboard or VR",