Skip to content

Commit

Permalink
VRCAdvancedPickup - Update 0.1a
Browse files Browse the repository at this point in the history
*Added Kinematic Check to Rigidbody Sync
*Added 2 Additional Keybind checks "U and "P" for Desktop
*Reduced Rotation update time to 1 second from 5
  • Loading branch information
Packer committed Feb 12, 2023
1 parent 5c10846 commit d724ca5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Project/Assets/Scripts/VRCAdvancedPickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ public override void PostLateUpdate()

public void FixedUpdate()
{
//Rigidbody Released Syncing
if(syncRigidbody)
//Rigidbody Released Syncing TODO add is Kinematic check
if(syncRigidbody && !rb.isKinematic)
UpdateRigidbody();
}

Expand Down Expand Up @@ -264,9 +264,10 @@ public void Update()
{
if (Networking.LocalPlayer != null && PlayerId == Networking.LocalPlayer.playerId)
{
if (Input.GetKeyDown(KeyCode.I) || Input.GetKeyDown(KeyCode.J) || Input.GetKeyDown(KeyCode.K) || Input.GetKeyDown(KeyCode.L))
if (Input.GetKeyDown(KeyCode.I) || Input.GetKeyDown(KeyCode.J) || Input.GetKeyDown(KeyCode.K)
|| Input.GetKeyDown(KeyCode.L) || Input.GetKeyDown(KeyCode.U) || Input.GetKeyDown(KeyCode.O))
{
currentUpdateTime = setUpdateTime;
currentUpdateTime = 1;
}
}
}
Expand Down

Large diffs are not rendered by default.

0 comments on commit d724ca5

Please sign in to comment.