getUpVector method

Vector3 getUpVector()

Implementation

Vector3 getUpVector(){
  object.getWorldDirection( targetPosition );
  targetPosition.x = 0;
  targetPosition.z = 0;
  targetPosition.y = 1;
  targetPosition.normalize();
  return targetPosition;
}