Comments and answers for "hey! this problem has been bugging me cs1525 unexpected symbol `quaternion' can you please help we with this problem."
http://answers.unity.com/questions/1345041/hey-this-problem-has-been-bugging-me-cs1525-unexpe.html
The latest comments and answers for the question "hey! this problem has been bugging me cs1525 unexpected symbol `quaternion' can you please help we with this problem."Comment by CodeMonkeyCrying on CodeMonkeyCrying's answer
http://answers.unity.com/comments/1345889/view.html
yea I think so too... he was trying declaring a variable by some other declaration... which I think doesn't make any sense.Thu, 27 Apr 2017 02:55:42 GMTCodeMonkeyCryingAnswer by AtLeastImTrying
http://answers.unity.com/answers/1345872/view.html
I'm really sorry for how long this took me, but I think I found a solution. I can't exactly be sure what you were looking for but I copied your script and debugged for about an hour. I came up with this:
using UnityEngine;
using System.Collections;
public class RecievedMovement : MonoBehaviour
{
Vector3 newPosition;
public float speed;
public float walkRange;
public GameObject graphics;
void Start()
{
newPosition = this.transform.position;
}
void Update()
{
Quaternion transRot = Quaternion.LookRotation(newPosition - this.transform.position, Vector3.up);
graphics.transform.rotation = Quaternion.Slerp(transRot, graphics.transform.rotation, 0.2f);
if (Vector3.Distance(newPosition, this.transform.position) > walkRange)
{
this.transform.position = Vector3.MoveTowards (this.transform.position, newPosition, speed * Time.deltaTime);
}
}
void RecievedMove(Vector3 movePos)
{
newPosition = movePos;
}
}
Get back to me as soon as you can if this doesn't work.Thu, 27 Apr 2017 02:04:30 GMTAtLeastImTryingComment by AtLeastImTrying
http://answers.unity.com/comments/1345459/view.html
Could you possibly type the full error message?Wed, 26 Apr 2017 01:48:59 GMTAtLeastImTrying