예제 #1
0
파일: Ship-AI.cpp 프로젝트: Luomu/pioneer
void Ship::AIModelCoordsMatchSpeedRelTo(const vector3d v, const Ship *other)
{
	vector3d relToVel = other->GetVelocity() * GetOrient() + v;
	AIAccelToModelRelativeVelocity(relToVel);
}
예제 #2
0
파일: Ship-AI.cpp 프로젝트: GAlexx/pioneer
void Ship::AIModelCoordsMatchSpeedRelTo(const vector3d v, const Ship *other)
{
	matrix4x4d m; GetRotMatrix(m);
	vector3d relToVel = m.InverseOf() * other->GetVelocity() + v;
	AIAccelToModelRelativeVelocity(relToVel);
}