-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skinned mesh renderer lags behind #5484
Comments
Does the same occur if you do it in OnUpdate? |
Yes, ive tried all updates |
I've now changed my system so the arms attach to the camera and the ik is to move the hand to the gun, still the same effect. |
Hi, Since this commit, i guess cause i didn't have this issue yesterday, I am currently investigating to find a scenario to reproduce the issue. I will edit this comment Edit :
2024-05-09.19-17-55.mp4 |
I made a change that should fix the first frame being wrong position. This won't fix the OP request though. This is a chicken and egg problem, and the only way I can see to fix it would be to allow you to set IK bones to offsets from GameTransforms. |
Nothing change for the sub issue (my build id : 14327656), i have created a issue in order to stop off topic for this issue : #5493 |
Is there a reason that the skinned mesh renderer is updating after the camera, that is the only understandable thing that is happening. I can make any normal model renderer I want follow something by setting the position and it's perfect, but as soon as I change the model renderer to a skinned renderer it lags a frame behind. |
Ok strange thing happening. When I move the gun around it leaves a ghost of an arm that is perfectly connected to the gun, how I want, whilst the rest of the arm is stuck a frame behind. However, when I record it the ghosting doesn't appear in the recording. What on earth is happening. |
Ok, solved the issue by using SetIK and using the correct naming for parameters in anim graph. |
Describe the bug
I am moving an object using my follow attachment script.
As a child the object has an arm which uses a skinned mesh renderer.
That mesh renderer and any other skinned mesh renderers as a child will always lag behind. In the scene view this doesn't occur
To Reproduce
Expected behavior
Not lagging behind
Media/Files
https://github.com/SwagAccount/the_second_coming_of_k/blob/main/code/FollowAttachment.cs
https://github.com/Facepunch/sbox-issues/assets/160753124/36c24333-efbf-4deb-80b5-52d698b4b302
^ I have also attached a normal model to show its not the script that is lagging behind.
Additional context
No response
The text was updated successfully, but these errors were encountered: