• 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

nohedonist published

Using Mathf.Clamp with Accelerometer to control movement speed has slow response time, how can I smooth it out?

May 16, '13 mobile·accelerometer·acceleration·tilt·mathf.clamp

0 Replies

0 Votes

avatar image

Bunny83 commented

Mathf.Clamp() or your own Clamp fn, which is better?

Apr 14, '18 unity 5·optimization·mathf·mathf.clamp·optimize

1 Reply

0 Votes

avatar image

Noxury commented

Clamp01 does not work?

Feb 1, '16 in Help Room

1 Reply

0 Votes

avatar image

Hovl answered

How to make a gameobject have a rotation constraint?

Mar 5, '20 rotation·quaternion·transform.rotation·mathf.clamp

1 Reply

0 Votes

avatar image

Posly asked

How to use Mathf.Clamp with child objects?

Feb 11, '12 rotation·parent·mathf·clamp·mathf.clamp

0 Replies

0 Votes

avatar image

Infamous911 commented

Two Clamps on the Same axis

Jul 30, '11 screen·clamp·mathf.clamp·edge

1 Reply

0 Votes

avatar image

SheZii answered

Using Mathf.Clamp in unity for boundries

Feb 7, '19 phone·tilt·mathf.clamp·tilting

2 Replies

0 Votes

avatar image

LeftyTwoGuns commented

Help clamping player movement boundaries

Oct 11, '13 transform.position·mathf.clamp·boundary

1 Reply

0 Votes

avatar image

skylem commented

Mathf.Clamp for rigidbody2D.velocity.x not working?

Jan 14, '15 2d-platformer·2d-physics·mathf.clamp·platformercontroller

1 Reply

0 Votes

avatar image

muzkie commented

Limiting the movement of a player object moved by transform.translate (Unity 5)

May 4, '16 in Help Room

0 Replies

0 Votes

avatar image

Mmmpies commented

Touch control for a Pong Game Wiki

Jan 25, '15 2d·touch controls·mathf.clamp

1 Reply

0 Votes

avatar image

DaoGear answered

Mathf.Clamp an int value

Mar 6, '22 int·range·mathf.clamp

4 Replies

0 Votes

avatar image

rodrigozol commented

Rigidbody.movePosition in localPosition with limited moviments?

Nov 12, '13 rigidbody·mathf.clamp·rigidbody.moveposition

0 Replies

0 Votes

avatar image

jullykado published

Mathf.Clamp with the rigidbody Closed

Aug 18, '20 position·mathf.clamp

1 Reply

0 Votes

avatar image

aldonaletto commented

clamp rotation the other way?

Dec 25, '14 rotation·clamp·mathf.clamp·invert

1 Reply

0 Votes

avatar image

awplays49 commented

Such thing as a smooth clamp?

Dec 27, '14 clamp·mathf.clamp

1 Reply

0 Votes

avatar image

RandomBinaries published

Mathf.Clamp Problem with Character Controller Script

Sep 28, '12 javascript·movement·character controller·mathf.clamp

0 Replies

0 Votes

avatar image

lordlycastle commented

Mathf.Clamp having weird effects on player object with rigidbody

Apr 5, '15 rigidbody·vector3·axis·rotating·mathf.clamp

1 Reply

0 Votes

avatar image

awest edited

Mathf.Clamp issues Closed

Oct 10, '14 camera·rotation·flickering·mathf.clamp

1 Reply

0 Votes

avatar image

xsharkox published

How can i limit a players movements to the screen without player shaking?

Oct 30, '14 player movement·limit·mathf.clamp

1 Reply

0 Votes

avatar image

Zoraph published

my MainChara shakes when the Mathf.Clamp stops it from going off screen

Dec 11, '12 screen·clamp·mathf.clamp·viewporttoworldpoint

1 Reply

1 Votes

avatar image

MutualTeats commented

Mathf.Clamp explaination

Oct 7, '13 mathf.clamp·explain·fps-controller

1 Reply

0 Votes

avatar image

BEFaughnan commented

Clamp rotation of object with C# on mobile.

Apr 30, '15 rotation·mobile·mathf.clamp

1 Reply

0 Votes

avatar image

Adam_Raetz published

Another Mathf.Clamp Not Working on Rotate?

Oct 16, '15 c#·mathf·mathf.clamp·clamped rotation

1 Reply

0 Votes

avatar image

Lo0NuhtiK commented

How can I add or subtract from a variable in a Mathf.Clamp sequence?

Jul 9, '13 javascript·2d-gameplay·gameobject.find·mathf.clamp

1 Reply

0 Votes

avatar image

Indiegangster published

Clamping quaternion look at

Feb 11, '13 quaternion·mathf.clamp

0 Replies

0 Votes

avatar image

Griffo edited

Tracking a projectile with Mathf.Clamp

Jul 20, '13 lerp·clamp·mathf.clamp·mathf.lerp

1 Reply

0 Votes

avatar image

erthwormsam commented

Two Strange MathF Clamp Issues: The Disabling of OnMouseDrag

Apr 9, '19 mathf.clamp·onmousedrag

2 Replies

1 Votes

avatar image

Bunny83 commented

Camera shaking and barely moving after adding a clamp to x rotation?

Oct 17, '20 clamp·mathf.clamp

2 Replies

0 Votes

avatar image

GigiB commented

I'm trying to sort my Npc's into different social classes

Sep 6, '14 arrays·if-statements·if statement·mathf.clamp

1 Reply

0 Votes

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

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