• 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

aldonaletto commented

clamp rotation the other way?

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

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

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

Lionheart7 commented

Mathf.Clamp on Z-Axis to limit rotation using transform.Rotate

Apr 30, '20 mathf.clamp·z-axis

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

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

kaitou commented

Tilting A Hover Car, need to lock the rotation

Nov 4, '14 rotation·tutorial·mathf.clamp

1 Reply

0 Votes

avatar image

Sourabh Kondapaka commented

Mathf.Clamp not working for float values.

Oct 20, '14 mathf.clamp

3 Replies

0 Votes

avatar image

awest edited

Mathf.Clamp issues Closed

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

1 Reply

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

avatar image

Damo12345 commented

NEED HELP SETTING BOUNDERYS !!

Aug 21, '14 c#·mathf.clamp·boundary

0 Replies

0 Votes

avatar image

tanoshimi edited

Make my player who uses Character Controller to stop moving in one certain direction once it reaches the borders.

Jun 18, '14 transform·charactercontroller·mathf·clamp·mathf.clamp

1 Reply

0 Votes

avatar image

Loius answered

mathf.clamp doesn't clamps

Jun 4, '14 issue·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

Zodiarc published

Mathf.Clamp() jumping back to max value after reaching min value.

May 22, '14 rotation·camera rotate·clamp·mathf.clamp

1 Reply

0 Votes

avatar image

NoseKills commented

Mathf.Clamp Jumping

May 11, '14 vector3·mathf.clamp·tranform.position

0 Replies

0 Votes

avatar image

Kamuiyshirou answered

Unity 2D, Mathf.Clamp rotation value

May 3, '14 2d·rotation·mathf.clamp

1 Reply

-1 Votes

avatar image

getyour411 commented

Instantiating Dots

Apr 29, '14 instantiate·mathf.clamp·bce0043·dot

1 Reply

0 Votes

avatar image

robertbu commented

eliminating angular velocity when clamp value hit?

Apr 21, '14 rotation·velocity·torque·mathf.clamp·angularvelocity

0 Replies

0 Votes

avatar image

Kebabs answered

What am I doing wrong? Using mathf.clamp to cap an int value. value

Feb 14, '14 mathf·mathf.clamp

1 Reply

0 Votes

avatar image

andez commented

stuck on how to apply Mathf.Clamp c#

Feb 6, '14 mathf.clamp

0 Replies

0 Votes

avatar image

AlucardJay converted comment to answer

mathf.clamp is not working

Nov 24, '13 mathf.clamp

2 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

Freaking-Pingo commented

Clamp not working. (solved)

Nov 4, '13 not working·mathf·mathf.clamp

1 Reply

0 Votes

avatar image

LeftyTwoGuns commented

Clamping movement range on X-axis

Oct 14, '13 movement·axis·mathf.clamp·boundary

0 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

MutualTeats commented

Mathf.Clamp explaination

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

1 Reply

0 Votes

avatar image

Fattie commented

limiting rotation of a rigidbody in C#

Oct 3, '13 rotation·rigidbody·mathf.clamp

3 Replies

0 Votes

avatar image

Kebabs published

How do I use mathf.clamp to make boundaries for a camera

Sep 18, '13 camera·clamp·mathf.clamp·side scroller

0 Replies

0 Votes

avatar image

brainmattergames published

Increasing speed of spawned objects over time?

Aug 3, '13 timescale·mathf.clamp·mathf.lerp

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