Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
TimberStalker
Posts
Comments
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
If its all positive then you should be fine
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
thats my fault sorry
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
oh i missed the negatives
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
itl help understand
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
let me draw a diagram
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
that is correct
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
no
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
Are you sure? With truncate the the tiles left and right(and up or down) of the axes will be given the sime tile position
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
Truncate(-1.3) = -1 Floor(-1.3) = -2
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
@41phaNum3r1ca1 Actually another thing. Truncate will cause a bug if x or y is negative. You should be using Floor instead
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
this will avoid tostring on the vector and call tostring on the ints directly
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
should be. If you want to log it differently you can do
$"({vector2int.x}, {vector2int.y})"
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
you have to change the base type to Vector2Int
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
Remember, if you can do something, you must be able to do it in 5 almost indistinguishable ways
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
real fun
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
Oh ya,
Mathf
and
MathF
are different classes
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
News to me. I thought it was different, especially since Microsoft added their own
MathF
class,
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
ok then
55 replies
C
C#
•
Created by 41phaNum3r1ca1 on 6/4/2024 in
#help
Why does this truncated Vector 2 have 2 decimal places
Really?
55 replies