attaching character to moving platform with SetParent & block to slow down. #54
Replies: 2 comments
-
Hi, For your issue with your character getting squished, check to make sure you platform is scaled to (1,1,1). To make platforms that are not perfectly 1x1x1, you need to scale your collider, not the object itself. You can then have a child that is just a mesh and scale that to fit the collider. You will basically get weird scaling issues when parenting and unparenting to a game object where the root transform is not set to 1x1x1. With that being said, we recommend you use the moving block example. This is because the moving block example is taking into account physics, you may still get weird results by just parenting your player character to the moving platform. Looks like you are having fun experimenting with the Zepeto platform, which we highly encourage! |
Beta Was this translation helpful? Give feedback.
-
haha thanks as always. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
howdy, I wrote a script to setparent on the block's trigger few days ago,
which is a lot simpler to my likings compare to the provided moving block sample. (ughhh that world was just overly complicated)
my script was working fine on 1 dimensional movement.


when I used this script to perform 2 dimensional movement, x + y combined, it was squeezing? my character flat like a pancake.
also I kinda wanna make the moving block to slow down near the start and end points, to no success (totally expected)
how do I go about fixing them both.
---------------------------------movingcharacterwiththeblock--------------------------------------
`
Beta Was this translation helpful? Give feedback.
All reactions