• 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

Unanswered Questions

  • All Questions
avatar image

Graephen asked

How can I make my turret also rotate on the X-axis?

May 9, '22 in Help Room

0 Replies

0 Votes

avatar image

darkdoom973 published

After adding script for rotation to look up down, look left right stopped working,After writing code for the rotation for looking up down, looking right left stopped

Nov 2, '21 rotation·scripting problem·input·charactercontroller·mathf.clamp

0 Replies

0 Votes

avatar image

egonspengler_84 asked

Trouble with using Mathf.Clamp function in order to create collision detection with raycasts

May 25, '21 raycast·collision2d·bounds·mathf.clamp

0 Replies

0 Votes

avatar image

Privvet asked

Why does the gameobject "bounce back", and start rotating the opposite direction once it has reached its mathf.clamp rotation limit?

May 24, '21 in Help Room

0 Replies

0 Votes

avatar image

ricolini asked

How to make Objects moving on a circular path collide with each other?

Feb 10, '21 in Help Room

0 Replies

0 Votes

avatar image

PlagueT edited

If parent rotates, the child's rotation towards mouse is disturbed.,Parent rotation disturb child rotation towards mouse

Dec 10, '20 rotation·transform.rotation·mathf.clamp·localrotation

0 Replies

0 Votes

avatar image

impisus_unity edited

How do I limit the roll of a game object?

Dec 7, '20 in Help Room

0 Replies

0 Votes

avatar image

Cryno1000 asked

Chambering new round script not working

Jun 20, '20 scripting problem·script error·mathf.clamp

0 Replies

0 Votes

avatar image

Mikzalianz edited

How to clamp transform.Rotate values?

Sep 24, '19 in Help Room

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

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

Montreal asked

Limit camera pan not working

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

0 Replies

0 Votes

avatar image

cjtouhey edited

My accelerate script ramps up in the inspector but no movement.

Jun 14, '18 movement·rigidbody·velocity·mathf.clamp

0 Replies

0 Votes

avatar image

maxdragonpc asked

Please help me! Correct script) ,

Apr 18, '18 in Help Room

0 Replies

0 Votes

avatar image

LinkUpGames asked

Help with Clamping X Rotation

Apr 9, '18 c#·rotatearound·mathf.clamp

0 Replies

0 Votes

avatar image

22ecvvw edited

Mathf.Clamp() Not working, one corner only.

Mar 24, '18 in Help Room

0 Replies

0 Votes

avatar image

pako commented

problem with mathf.clamp

Dec 23, '17 mathf.clamp

0 Replies

0 Votes

avatar image

JaredHD edited

Limiting rotation based on direction

Oct 29, '17 c#·quaternion·eulerangles·mathf.clamp·localrotation

0 Replies

0 Votes

avatar image

Fermak commented

pixels per unit issues

Sep 6, '17 mathf.clamp·pixels

0 Replies

0 Votes

avatar image

myojin08 edited

how is mathf.clamp to be resolution independent according to the RectTransform rt which is my gamefield? bacause when im playing in other resolution clamp is changing.

Aug 1, '17 in Help Room

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

InsertNamehere asked

Using Mathf.Clamp To Limit Camera Movement

Jun 30, '17 camera·movement·limit·mathf.clamp·x-axis

0 Replies

0 Votes

avatar image

Shindy117 asked

Mathf.clamp cancels my trigger

Jun 4, '17 in Help Room

0 Replies

0 Votes

avatar image

CloudFs published

How to stop rigidbody from slowing down ?

May 20, '17 rigidbody·mathf.clamp·boundary·slowdown

0 Replies

0 Votes

avatar image

skylerkingdev published

Clamping local movement

Apr 24, '17 scripting problem·positioning·localposition·mathf.clamp

0 Replies

1 Votes

avatar image

churu asked

Mouselook not clamping

Feb 12, '17 in Help Room

0 Replies

0 Votes

avatar image

ArisingHero029 published

Limiting Camera Rotation On one Axis Only

Dec 19, '16 mathf.clamp

0 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

voltage asked

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

Sep 21, '16 in Help Room

0 Replies

0 Votes

avatar image

rutwikd95 published

NullReferenceException: Object reference not set to an instance of an object CameraFollow.Update ()

Sep 16, '16 camera·transform.position·mathf.clamp

0 Replies

0 Votes

  • 1
  • 2
  • ›

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