INNER CODE UNIT · C++

x

TombEngine/TombEngine · TombEngine/Game/camera.cpp:812

	int x = ideal->x;
	int y = ideal->y;
	int z = ideal->z;

	auto pointColl = GetPointCollision(Vector3i(x, y, z), ideal->RoomNumber);
	if (yFirst)
	{
		int buffer = CLICK(1) - 1;
		if ((y - buffer) < pointColl.GetCeilingHeight() &&
			(y + buffer) > pointColl.GetFloorHeight() &&
			pointColl.GetCeilingHeight() < pointColl.GetFloorHeight() &&
			pointColl.GetCeilingHeight() != NO_HEIGHT &&
			pointColl.GetFloorHeight() != NO_HEIGHT)
		{
			y = (pointColl.GetFloorHeight() + pointColl.GetCeilingHeight()) / 2;
		}
		else if ((y + buffer) > pointColl.GetFloorHeight() &&
			pointColl.GetCeilingHeight() < pointColl.GetFloorHeight() &&

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…