02-13-2015 12:20 AM
02-13-2015 07:12 AM
02-13-2015 04:39 PM
"ronczarnik" wrote:
Try transform.forward instead of Vector3.forward. Vector3.forward is a global direction, transform.forward is the localized direction.
02-13-2015 05:05 PM
"FuturisticHub" wrote:"ronczarnik" wrote:
Try transform.forward instead of Vector3.forward. Vector3.forward is a global direction, transform.forward is the localized direction.
Thanks! I actually did try this and since my vehicle is in "zero G" it doesn't work well and act like Zero G. I can turn and pitch just fine but thrust forward and back in Zero G is a no go. 😕
02-13-2015 05:17 PM
transform.position += transform.forward * Time.deltaTime * movementSpeed;
02-14-2015 10:46 AM
"cybereality" wrote:
You're adding a direction vector to itself, which doesn't make sense.
You need to do something like this:transform.position += transform.forward * Time.deltaTime * movementSpeed;