im making a model viewer in C# and im having trouble getting the camera to move around a point...
in java all i had to do was
if (Mouse.isButtonDown(0) && !Mouse.isButtonDown(1)) {
yaw -= (float) Mouse.getDX();
pitch -= (float) Mouse.getDY();
}
if (Mouse.isButtonDown(0) && Mouse.isButtonDown(1)) {
offset_z += (float) Mouse.getDY();
}
float wheel = (float) Mouse.getDWheel() / 960.0F;
if (wheel > 1.0F)
wheel = 1.0F;
else if (wheel < -1.0F)
wheel = -1.0F;
scale -= scale * wheel;
if (scale < 0.01F)
scale = 0.01F;
sorry, im new to c# I have searched for this for about 30 minutes before i posted here so...