• 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

jullykado published

Mathf.Clamp with the rigidbody Closed

Aug 18, '20 position·mathf.clamp

1 Reply

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

avatar image

GregIven commented

Help with clamping rotation, and using animations

Nov 21, '15 in Help Room

0 Replies

0 Votes

avatar image

MarbleBlue asked

Problems with camera orbiting the player based on mouse input (C#)

Oct 27, '15 in Help Room

0 Replies

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

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

Nycrael asked

2D Camera shakes when player move fast

Oct 4, '15 in Help Room

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

Darth_Cheree answered

Error CS1031 Closed

Sep 12, '15 in Help Room

2 Replies

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

nomadic edited

This is probably a really simple problem that I can't figure out

Aug 14, '15 camera·rotation·mathf.clamp

1 Reply

0 Votes

avatar image

RLin answered

how to clamp a void operator properly

Aug 14, '15 rotation·javascript·void·mathf.clamp

1 Reply

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

BugFighter published

Problems with Clamping Player to Screen

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

1 Reply

0 Votes

avatar image

jessee03 commented

Error using return Mathf.Clamp

Jun 2, '15 mathf.clamp

1 Reply

0 Votes

avatar image

Lars_Hulsmans edited

how to set boundaries

May 20, '15 mathf.clamp

2 Replies

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

Redz0ne commented

When using Mathf.Clamp, can I set a minimum but no maximum?

Mar 30, '15 mathf.clamp

1 Reply

1 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

john_goren edited

Restricting movement with Mathf.Clamp

Aug 25, '21 c#·scripting problem·mathf.clamp

4 Replies

4 Votes

avatar image

Atlantatopher published

Little problem with Mathf.Clamp as used in Space Shooter Tutorial

Apr 11, '19 movement·space shooter·mathf.clamp·boundary

8 Replies

2 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

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

maccabbe commented

Mathf.Clamp isn't stopping movement

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

1 Reply

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

Ujean917 commented

c#: Mathf.Clamp causing unwanted behavior Closed

Jan 19, '15 c#·mathf.clamp

2 Replies

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

JustinC commented

Mathf.Clamp help

Jan 11, '15 mathf.clamp

2 Replies

0 Votes

avatar image

awplays49 asked

Camera rotating past clamp

Dec 27, '14 clamp·mathf.clamp

0 Replies

0 Votes

avatar image

awplays49 commented

Such thing as a smooth clamp?

Dec 27, '14 clamp·mathf.clamp

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