-
Notifications
You must be signed in to change notification settings - Fork 222
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
Object with a lattice deformable are incorrectly translated in the world #75
Comments
Sorry to hear about that. I tried going through your steps, but have been unable to reproduce the bug. Would it be possible for you to zip me a repro project? |
Certainly! |
Yup, I have read/write on all my rock meshes. |
@keenanwoodall Going to try with other rocks. |
The errors in the console indicate the game-object is statically batched. Unity is combining all the static game-objects into one mesh when you enter play-mode or make a build and the Deformable cannot read/write to that mesh. |
This problem is a symptom of a larger problem which is that Deform does not have a proper controls for Deformable stripping. I ended up making a new feature branch that adds a "Strip Mode" parameter to Deformable components. This parameter is forced on when static batching is enabled on a game-object Let me know if this works for you! It should also solve the issue of meshes getting teleported as that was caused by static batching |
OH really!!! This is great!! Will try that ASAP. |
Umm, ok, I have one more error to solve and that should be it. Thank you @keenanwoodall |
Sounds good, thanks for finding this issue! |
Describe the bug
After applying a lattice deformer and worked with the control points, an object that looks good in editor mode will get positioned incorrectly in playmode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Object should look the same between edit mode and play mode.
Screenshots
And result which is wrong:
Additional context
Once this feature is working probably, i'm going to use this throughout my level.
Please contact me as I am interested in funding the completion of this deformable lattice.
The text was updated successfully, but these errors were encountered: