• 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

Hoorza commented

How can I make sprite stay in viewport and point towards the game object it is attached to?

Nov 2, '17 in Help Room

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

Wakaar edited

transform.position assign attempt for 'RCCMainCamera' is not valid. Input position is { NaN, NaN, NaN }. UnityEngine.Transform:set_position(Vector3)

Mar 24, '20 in Help Room

1 Reply

1 Votes

avatar image

UniKam edited

Space Shooter tutorial - Mathf.clamping boundaries

Jun 13, '17 in Help Room

0 Replies

2 Votes

avatar image

NoseKills commented

Mathf.Clamp Jumping

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

0 Replies

0 Votes

avatar image

FreeTimeDev edited

Clamping Child's Rotation Relative To Partent's

Jul 23, '13 rotation·parent·child·mathf.clamp

0 Replies

0 Votes

avatar image

Ujean917 commented

c#: Mathf.Clamp causing unwanted behavior Closed

Jan 19, '15 c#·mathf.clamp

2 Replies

0 Votes

avatar image

Bunny83 answered

Is it possible to Mathf.Clamp the position.x of Camera.main.screenToWorldPoint(Input.mousePosition)?

Jul 4, '19 screentoworldpoint·mouse position·mathf.clamp

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 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

maccabbe commented

Mathf.Clamp isn't stopping movement

Jul 21, '15 movement·mathf.clamp·pong·paddle

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

SelfishGenome commented

Clamping values for camera bounds

Jul 28, '15 clamp·mathf.clamp·fov·fieldofview

1 Reply

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

AlucardJay converted comment to answer

mathf.clamp is not working

Nov 24, '13 mathf.clamp

2 Replies

0 Votes

avatar image

NotEnoughLemons3D commented

C# List index confusion using Mathf.Clamp

Nov 2, '16 in Help Room

1 Reply

0 Votes

avatar image

Zac_Mountain commented

Random.Range producing values outside its range.

Apr 24, '17 in Help Room

1 Reply

0 Votes

avatar image

5c4r3cr0w answered

Vector3 does not contain a constructor that takes 4 arguments

May 3, '16 in Help Room

0 Replies

0 Votes

avatar image

G-Reusch edited

Input Field shortening string when used with Mathf.Clamp? Closed

Feb 6, '17 ui·unity5·inputfield·mathf.clamp

0 Replies

1 Votes

avatar image

getyour411 commented

Instantiating Dots

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

1 Reply

0 Votes

avatar image

_-puppytails-_ commented

I am trying to clamp a camera, however the camera "jumps"

May 14, '20 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

CloudFs published

How to stop rigidbody from slowing down ?

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

0 Replies

0 Votes

avatar image

Yacob3 commented

Locking movement in the X and Z axis

Apr 2, '19 c#·mathf.clamp

2 Replies

0 Votes

avatar image

Content1of_akind answered

MathF.clamp not working!

Oct 7, '20 in Help Room

1 Reply

0 Votes

avatar image

Robert_s_a commented

I have a problem with mathf.clamp…how to use it to move left and right??

Mar 10, '17 in Help Room

2 Replies

0 Votes

avatar image

asimov edited

Turning a wheel to make a platform move (similar to Monument Valley)

Mar 10, '15 touch·event triggering·mathf.clamp

0 Replies

1 Votes

avatar image

jessee03 commented

Error using return Mathf.Clamp

Jun 2, '15 mathf.clamp

1 Reply

0 Votes

avatar image

meat5000 converted comment to answer

Is there any difference between mobile and desktop physics?

Oct 20, '15 update·velocity·physics2d·mobile devices·mathf.clamp

1 Reply

0 Votes

avatar image

skylerkingdev published

Clamping local movement

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

0 Replies

1 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