All pastes #732588 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2007-10-11 03:05 UTC
rendered paste body
void Camera::pitch(float angle){	Vector relation = curLoc - viewLoc;		relation.x = cos(angle/2) + sin(angle/2)*relation.unit().x;	relation.z = cos(angle/2) + sin(angle/2)*relation.unit().z;	viewLoc += relation;}