dear

dears
i’m trying to make an script that make rotation for the Rigid buddy (as in the 2dgameplaytutorial) but the point is that i want to limit the rotation between to angle.

so how io can do this?

regards

Dear you,
I believe you may need to use a configurable joint. You need to set the angular rotation for whatever you need to limit, set to ‘limit’ naturally. If you are doing the 2D Gameplay Tutorial you probably need to limit the z-axis. Then play with the values under ‘Angular ZLimit’ to get it the way you want it to function. If you want to know more about it go here: Unity - Manual: Configurable Joint component reference Otherwise, play with it to get a feel for how you can use it in your game.

Best wishes,
ShiftyMcCan

thx for your helpful post :slight_smile: