A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
.up & .down are for directions... you maybe need to Negate the axis transform.Rotate(-Vector3.up, RotationSpeed * Time.deltaTime);
Interesting and useful. Thanks Orion :)
you could use the .depht property of the cameras to switch betweem them. Unity uses the camera with the highest one AND uses the main camera if...
Are you in 2D or 3D ?
Does it work when you set the alpha to zero in the inspector ? i think you have to switch to transparent (or fade) mode to use the alpha property...
So as Bunny83 said and in other words : if you never enter the if statement, that means it Always returns False. try what he suggested about...
Put a Debug.Log() before the foreach () to see if OnTriggerEnter2D() matches
You are using Mathf.LerpAngle() for Rigidbody.MoveRotation() that uses Quaternion. use Quaternion.Slerp() or Quaternion.Lerp() or...
not only a typing issue, there is no reference to Height or height in your script. LOL i forgot it was a pic (better use code tags). It's your...
https://learn.unity.com/tutorial/variables-and-functions#5c8927daedbc2a0d28f484ef and what the vertical bar | before -Height is ?
Mainly Unity tells you that you are using the variable jumpHeight but you did not declare it... In your context, it seems to be a type mistake...
if i understand, you want to animate your player using rotations. Actually, you want to make your own movement controller. is it?
Physics.CapsuleCast return a bool not a RaycastHit type. The result is true or false.
yes indeed. but the main problem is that what is into the if statment can never happens because loop will never be < 1 while loop -= 1; is into...
put the loop -= 1; out of the if statement
adapt this to your needs if it's what you're loking for...
Or simply use LookAt(lookAt) without any other quaternion... its a cosmetic question. with LookAt when you start the game, you have a litle snap...
You right. this Quaternion _LookAt = Quaternion.RotateTowards(transform.rotation, angle, 1f); is totally unuseful here. (copy / drop...) i use...
Fixing bugs by adjusting variables values is rarely a good method... Try this if it corresponds to your needs. void rotateToward() {...
If the turret is a child of the blue "pillard" you can use its forward as reference... EDIT: back to my pc where i've an example. the angle is...