Posts by Gatti • 105 points
8 posts
-
0
votes2
answers402
viewsA: Unity: character walks side by side instead of front
Exchange the GetAxis Vertical by Horizontal, thus: using UnityEngine; public class PlayerController : MonoBehaviour { void Update() { var x = Input.GetAxis("Horizontal") * Time.deltaTime * 150.0f;…
-
-1
votes1
answer551
viewsQ: Quaternions in Unity3d
Well... I wish I knew more about Quaternions in Unity... I didn’t understand very well what they do... and why they use the Quaternions and not the Angles of Euler... I didn’t find good material…
-
-1
votes1
answer24
viewsQ: Error in Unity3d
How can I fix this error? I found nothing about it on the internet... this is the script `using Unityengine; using Unityengine.AI; public class Bluecubebehaviour : Monobehaviour { private Rigidbody…
-
1
votes0
answers64
viewsQ: Colliders on Unity3d on C#
I’d like to detect if my cube on the left is touching the side of my cube on the right, but I can’t do that. Is there any method without having to create null objects, raycasts or linecast that can…
-
0
votes1
answer33
viewsQ: Keywords As and Is in C#
Well... I was a little confused about the keywords As and Is in C#... I didn’t understand the difference between them nor what they are for... I believe that it is not so difficult to find a…
-
2
votes1
answer321
views -
-1
votes1
answer327
views -
2
votes2
answers359
viewsQ: Keyword "new" in C#
I went to see about the keyword new in C#, but I could not find someone who explains well what I want to know. They say that the new creates a new instance, but I don’t understand exactly what they…