Ejemplo n.º 1
0
	Impl(){
		mMesh = MeshFacade::Create()->LoadMeshGroup("data/aagun2.dae");
		mMesh->AttachToScene();
		mMesh->SetPosition(Vec3(100, 100, 100));
		Quat q;
		q.FromAngleAxis(Radian(45), Vec3::UNIT_Z);
		mMesh->SetMeshRotation(1, q);
		q.FromAngleAxis(Radian(45), Vec3::UNIT_X);
		mMesh->SetMeshRotation(2, q);
		Transformation world;
		bool found;
		mMesh->GetMeshCameraAndWorldTransformation("_CAM_FP", world, found);		
	}
Ejemplo n.º 2
0
Quat Quat::CreateFromAngleAxis(const Real radian, const Vec3& axis) {
	Quat q;
	q.FromAngleAxis(radian, axis);
	return q;
}