Sound effects stuttering when player dies?
I've been trying to finish up the stealth tutorial , and for whatever reason whenever the player dies, the siren sound effects stutter and the alarm lights do not go off. I even went as far to replace...
View ArticleSmarter AI Searching for the Player
I've been trying to set up the enemy Ai to take the player's last known direction and use that for a way to check specific waypoints in the level depending on what that last direction was. Does anyone...
View ArticleCheck player's position once per Second?
what would be the easiest way to check the player's position once per second. Vector3 PosPerSeconds() { posSeconds += Time.deltaTime; if (posSeconds >= posSecondsTimer) { newCurrentPosition =...
View ArticleFinding the closest waypoint
for the NavMesh, how would you find the closest waypoint to the player's current position?
View ArticleThe SqrMagnitude for Input
I've seen this line `speed = new Vector2(h,v).sqrMagnitude;` used a couple times for the parameter in mechanim, but I'm not really sure what it's doing. Could someone explain to me what its doing...
View ArticleQuaternion FromToRotation Confusion
I know this one line is pretty self explanatory, but i'm having trouble understanding the order it's placed in Quaternion referentialShift = Quaternion.FromToRotation(Vector3.forward, CameraDirection);...
View ArticleQuaternion multiplication
I was studying this script from an example project and after comparing it to another tutorial, did some research on Quaternion multiplication. Now I am by no means a math whiz (only learning what I...
View ArticleDragon Tablet Y88 USB Debugging Drivers
I've been trying to use the Unity Remote on a tablet I got a while back, but google's USB driver's are not working for it. Is anyone familiar with this model? I'm not sure if I should put in the effort...
View ArticleConstraining rotation to only the Y Axis
I was trying different bullet patterns for a shooter game, and noticed that the rotation on the Z axis has problems when there is movement on the player using a rigidbody,so the bullet patterns...
View ArticleMathf.Infinity
Can someone explain how Mathf.infinity is working in this script? The script is supposed to turn an instantiated bullet towards the closest target, but I can't really tell what Math.infinity is...
View Article