I’m making a 2.5d game, and parts look very weird if they’re rotated somewhere that isn’t how a 2D object should rotate.
Are you using the built in physics system? In that case, try an AlignOrientation in every assembly that you want to prevent from rotating, set it to Parallel and attach it to the assemblies and to some Attachment whose WorldPrimaryAxis is the axis you want to allow rotation around. Oh and make the assembly-side Attachment’s PrimaryAxis the object-space axis you want to allow rotation around.
Sounds good, I don’t understand it though, does it strictly limit Orientations? Because I need some stuff to roll on axis still.
Could you show us what you mean by “it look weird”?
Here’s an example, when it’s in a good alignment the 2D assets look fine.
But when It’s rotated on the X or Y axis (based off the Orientation)
it makes the image distort and just look weird, sometimes the parts just rotate a completely different direction, not showing the Decal at all.
By 2.5d game do you mean you’re using decals for the world?
Yes decals combined with flattened meshes, however some parts keep the 3D look for style purposes.
Wait I’m actually so confused, how are you rotating the decal? Why is it flattening like that??
So the game is meant to play like a 2D one, a physics game similar to Happy Wheels in a way. The problem is that the engine physics cause the part to rotate in way it’s not meant to, causing weird visuals and gameplay effects.
Have you considered using an isometric camera? (Could you also send a video of a part “rotating” and it squishing like that? Maybe it’s not rotating)
Here’s a top view of parts falling down, see how it rotates in all ways?
They’re meant to only rotating this direction.
Ahhh ok I see, you can use either AlignOrientation (best option) or BodyGyro with it locked on an axis. But also, how does it get squished like in the first picture?
The squishing is due to a rotation on the X axis, something I don’t want.
It’s because of how perspective works. A flat object with an image on it will look distorted as it rotates.
Yeah, got it now lol. I thought he was making the part smaller for some reason