Timeline for Mathf.Clamp not Working Properly to clamp a rotation between -90° and 90°
Current License: CC BY-SA 4.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 16, 2023 at 11:21 | history | edited | Philipp | CC BY-SA 4.0 | edited title |
| Aug 15, 2023 at 21:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Mar 7, 2023 at 10:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Oct 1, 2022 at 11:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| May 16, 2022 at 23:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jan 16, 2022 at 22:07 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Sep 18, 2021 at 22:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| May 21, 2021 at 21:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Jan 21, 2021 at 20:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Sep 23, 2020 at 19:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Aug 24, 2020 at 17:56 | comment | added | DMGregory♦ | I don't recommend trying to manipulate individual components of an Euler angle triplet - especially one that's been generated on demand from a source quaternion rather than constructed wholly in code you control and can reason about. They exhibit counter-intuitive wrap-around behaviour that makes lots of correct-looking code completely incorrect in practice. Working with direction vectors or quaternions might look more complex at first, but they give you much more reliable results because they don't have these wrap-around seams. | |
| Aug 24, 2020 at 17:44 | answer | added | Kevin | timeline score: 1 | |
| Aug 24, 2020 at 16:41 | comment | added | Shubhendra Chaddha | Then what could be other different ways to approach the solution to this problem? | |
| Aug 24, 2020 at 9:48 | comment | added | Nikaas | I meant that simply clamping between 2 values (no matter what they are) will never work for all kinds of angles. But I can't help you with an universal solution. It took me a lot of time to just come up with one that work for my requirements. | |
| Aug 24, 2020 at 2:47 | comment | added | Shubhendra Chaddha | I have tried to replace -90 with 270 and changing the min and Max value, but it gets messy. | |
| Aug 23, 2020 at 12:31 | comment | added | Nikaas | Angles can often mess up when you do simple "linear" clamp. - 90 drgrees is the same as 270 degrees, and that will be clamped to +90. Clamping angles is a bit more complex and often is done slightly differently depending on the setup and goal. | |
| Aug 23, 2020 at 8:44 | history | asked | Shubhendra Chaddha | CC BY-SA 4.0 |