Пример #1
0
void Ship::AIModelCoordsMatchSpeedRelTo(const vector3d v, const Ship *other)
{
	vector3d relToVel = other->GetVelocity() * GetOrient() + v;
	AIAccelToModelRelativeVelocity(relToVel);
}
Пример #2
0
void Ship::AIModelCoordsMatchSpeedRelTo(const vector3d v, const Ship *other)
{
	matrix4x4d m; GetRotMatrix(m);
	vector3d relToVel = m.InverseOf() * other->GetVelocity() + v;
	AIAccelToModelRelativeVelocity(relToVel);
}