GodotVR / godot-xr-tools

Support scenes for AR and VR in Godot
MIT License
525 stars 75 forks source link

Fix 'create_snap' desync #686

Open squidt opened 1 month ago

squidt commented 1 month ago

If the player drops then picks up a 'SnapZone' with a 'PickableObject' in it the 'PickableObject' will lag behind during Player or SnapZone movement due to calling 'create_snap'. Adding the driver as a direct child of the grabber prevents any desync. 'create_lerp' function is similar but has been left out until further testing.

Tested on Godot 4.3.stable

Before, while moving (the small sphere on the green rail is where the SnapZone is): image After, while moving: image

BastiaanOlij commented 1 week ago

This needs a rebase and gdlint errors fixed, and then I will merge it :)

squidt commented 6 days ago

Think I rebased right.