Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

clamp vector3 unity

private Vector3 Clamp(Vector3 value, Vector3 min, Vector3 max)
{
  float x = Mathf.Clamp(value.x, min.x, max.x);
  float y = Mathf.Clamp(value.y, min.y, max.y);
  float z = Mathf.Clamp(value.z, min.z, max.z);
  return new Vector3(x, y, z);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: get value from config file c# 
Csharp :: linear search c# 
Csharp :: initialize list in c# 
Csharp :: string list to object array in c# 
Csharp :: wpf app how to get all elements 
Csharp :: c# sort array of objects 
Csharp :: how to convert date to Complete ISO-8601 date in c# 
Csharp :: c# regex match 
Csharp :: c# read lines number 3 from string 
Csharp :: regex c# 
Csharp :: c# mongodb update multiple fields 
Csharp :: c# best tutorial 
Csharp :: roman to int 
Csharp :: sequelize count all 
Csharp :: unity editor script 
Csharp :: float and int need help 
Csharp :: raycasthit unity 
Csharp :: How does works Unity interfaces 
Csharp :: dictionary in c# unity 
Csharp :: unity call function on update once per second 
Csharp :: nunjucks index in loop 
Csharp :: minimize window windows forms application c# 
Csharp :: unity class 
Csharp :: c# array of class 
Csharp :: c# signalr console app client example 
Csharp :: Unity gameobject visible to specific camera 
Csharp :: c# streamwriter add new line 
Csharp :: dotween sequence 
Csharp :: c# clear an array 
Csharp :: c# datagridview hide header 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =