You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.
On grab end, attempts to adjust the transform of the actor firing the grab end within the grab end handler are intermittently unreliable. Adding an artificial delay -- dispatching those transform adjustments in a setTimeout -- seems to improve the reliability of transform updates.
someActor.onGrab('end',()=>setTimeout(()=>{// mess with someActor parent and transformsomeActor.parent=this.somOtherActor;someActor.transform.local.position=Vector3.Zero();someActor.transform.local.position=somePosition.clone();someActor.transform.local.rotation=Quaternion.Zero();someActor.transform.local.rotation=Quaternion.Identity();},0.2/*shouldn't have to do this delay!*/));
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On grab end, attempts to adjust the transform of the actor firing the grab end within the grab end handler are intermittently unreliable. Adding an artificial delay -- dispatching those transform adjustments in a setTimeout -- seems to improve the reliability of transform updates.
The text was updated successfully, but these errors were encountered: