示例#1
0
//----------------------------------------
void ofNode::rollRad(float radians) {
	rotateRad(radians, getZAxis());
}
示例#2
0
//----------------------------------------
void ofNode::panRad(float radians) {
	rotateRad(radians, getYAxis());
}
示例#3
0
void Object3D::rotateDeg(const Vector3 &vrad) {
    rotateRad(Vector3::deg2rad(vrad));
}
示例#4
0
//----------------------------------------
void ofNode::tiltRad(float radians) {
	rotateRad(radians, getXAxis());
}
示例#5
0
    void Physics::accelerate(double step, double limit) {
        cg::Vector2d velupdate = rotateRad(cg::Vector2d(0, step), _angle);
        if (!(length(_velocity + velupdate) > limit))
		    _velocity += velupdate;
    }