Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

How to get the world position of the edge of an object?

Vector3 offset = transform.up * (transform.localScale.y / 2f) * -1f; 
Vector3 pos = transform.position + offset; //This is the position
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to check if a value is inside an array c# 
Csharp :: c# download string url 
Csharp :: c# convert string to enum 
Csharp :: net use delete 
Csharp :: unity3d change player position 
Csharp :: c# return list 
Csharp :: DateTime previous day c# 
Csharp :: how to make teleporter in unity 
Csharp :: how to move mouse in c# 
Csharp :: unity cast float to int 
Csharp :: c# unity follow object 
Csharp :: c# datetimepicker set weeks after today 
Csharp :: how to add a list to observablecollection in c# 
Csharp :: T SQL Format GetDate() 
Csharp :: wpf get screen size 
Csharp :: c# open url 
Csharp :: c# append multiline textbox 
Csharp :: unity random 
Csharp :: how to save a c# dictionary 
Csharp :: print random number unity 
Csharp :: shuffle arraylist c# 
Csharp :: https port 
Csharp :: c# byte array to bitmap 
Csharp :: crop bitmap image c# 
Csharp :: movement unity 
Csharp :: return json from controller c# 
Csharp :: unity how to get the side ways velocity of a object 
Csharp :: c# unity detect any keyboard input but not mouse input 
Csharp :: c# string replace comma with newline 
Csharp :: get last 4 character c# 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =