• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Mathf.clamp

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Lars_Hulsmans edited

how to set boundaries

May 20, '15 mathf.clamp

2 Replies

0 Votes

avatar image

DwarvenGaming published

Restricting rotation on an axis

Nov 8, '16 rotation·vector3·mathf.clamp·x-axis

0 Replies

0 Votes

avatar image

Dozy- published

How do you make slider children equally decrease when slider parent decreases?

May 31, '19 update·slider·mathf.clamp

0 Replies

0 Votes

avatar image

EvanCheddar commented

My player shakes when Mathf.Clamp stops it from going off screen.

May 19, '18 player·player movement·mathf·mathf.clamp·shaking

1 Reply

0 Votes

avatar image

mikelortega commented

Mathf.Clamp acts strange when going below 0

May 31, '16 rotation·physics·axis·eulerangles·mathf.clamp

1 Reply

0 Votes

avatar image

zacharygears edited

Trying to restrict the distance the player can zoom a 3D camera (not FOV!)

Mar 15, '20 camera·camera movement·mathf.clamp·mathf.lerp

1 Reply

0 Votes

avatar image

BugFighter published

Problems with Clamping Player to Screen

Jul 25, '15 c#·2d·graphics·mathf.clamp

1 Reply

0 Votes

avatar image

ownerfate edited

[CLOSED ] can't quite get a clamp to work with my script. Closed

Mar 23, '15 mathf.clamp·improvement

1 Reply

0 Votes

avatar image

janus1001 commented

Limiting rotation in 2 axis'

Apr 28, '17 physics·transform.rotation·mathf.clamp·mathf.lerp·quaternion.slerp

1 Reply

0 Votes

avatar image

Dvionst edited

Flicker while detecting edge of screen with Mathf.clamp

Apr 11, '16 2d·touch·flickering·mathf.clamp·edge

0 Replies

0 Votes

avatar image

Montreal edited

Save object position after drag?

Jul 26, '17 in Help Room

0 Replies

0 Votes

avatar image

avatarair1 commented

Mathf.Clamp does not work at all.

May 14, '16 in Help Room

1 Reply

0 Votes

avatar image

Jwizard93 commented

How to mathf.clamp a VR player?

Jun 28, '17 vr·sceneview·localposition·mathf.clamp

1 Reply

0 Votes

avatar image

rob2hutton commented

How to clamp between two rotations

Aug 20, '15 eulerangles·mathf.clamp·transform.rotate

0 Replies

0 Votes

avatar image

Zaeran answered

Trying to lock camera's Y axis and it's resetting at 0 degrees

Feb 10, '16 charactercontroller·unity5·mathf.clamp

1 Reply

0 Votes

avatar image

pako commented

problem with mathf.clamp

Dec 23, '17 mathf.clamp

0 Replies

0 Votes

avatar image

unity_S0ZCLiVP1XXH-w answered

Need help with limited movement with mathf clamp Closed

Feb 10, '18 in Help Room

2 Replies

0 Votes

avatar image

Heatmanofurioso commented

Mathf Clamp not working as expected

Mar 3, '16 in Help Room

1 Reply

0 Votes

avatar image

TreyH commented

Cant Clamp

May 7, '18 c#·timer·clamp·timer countdown·mathf.clamp

1 Reply

0 Votes

avatar image

screenname_taken commented

Strange vibrating when moving camera view

Dec 25, '14 clamp·mathf.clamp

0 Replies

0 Votes

avatar image

TheBlueInferno published

Mathf.Clamp on Camera X Axis

Feb 3, '16 camera·mathf.clamp

0 Replies

0 Votes

avatar image

voltage asked

How to Properly Mathf.Clamp an X Rotation for Camera?

Sep 21, '16 in Help Room

0 Replies

0 Votes

avatar image

churu asked

Mouselook not clamping

Feb 12, '17 in Help Room

0 Replies

0 Votes

avatar image

Spacejet13 answered

Not able to clamp camera rotation

Aug 7, '18 c#·fps controller·mathf.clamp·camera rotation·clamped rotation

1 Reply

0 Votes

avatar image

Merced_3 asked

How Do I Make The Camera Orbit Stop at a Certain Point?

Nov 20, '18 camera·stop·orbit·mathf.clamp·camera rotation

0 Replies

0 Votes

avatar image

Darth_Cheree answered

Error CS1031 Closed

Sep 12, '15 in Help Room

2 Replies

0 Votes

avatar image

Montreal asked

Limit camera pan not working

Nov 15, '18 camera·mathf·camera movement·mathf.clamp

0 Replies

0 Votes

avatar image

Learning-Android-Game-Development published

Mathf.Clamp() not working when changing transform.localScale?; Difference between rigidbody.position and transform.position?;

Sep 12, '15 transform.position·mathf.clamp

0 Replies

0 Votes

avatar image

GregIven commented

Help with clamping rotation, and using animations

Nov 21, '15 in Help Room

0 Replies

0 Votes

avatar image

Richb99 answered

Mathf.Clamp still allows rigid body to drift past clamp values

Dec 11, '15 in Help Room

1 Reply

0 Votes

  • »
  • ‹
  • 2
  • 3
  • 4
  • 5
  • 6
  • ›

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

rotation c# clamp camera mathf movement quaternion rigidbody boundary scripting problem limit mathf.lerp 2d vector3 eulerangles transform.position transform axis unity 5 camera rotate math gameobject clamped rotation transform.rotation transform.rotate


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges