Moving camera

Previous topic - Next topic

mentalthink

Hi, I?ve got a question about the movement of the camera:

How I can move a camera trought her local axis, always a move a camera if apply an increment in x, the camera always follow the way in line, but I want to watch to any point and move to this point (target of camera) when a push a key.

Thanks.

Hemlos

A sample:
This will follow your coordinates, and point to z+100 direction
x_camera x,y,z,x,y,z+100


Additionally, you can rotate around the center point with SIN and COS math.
Bing ChatGpt is pretty smart :O

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

mentalthink

Thanks Schranz0r!!!.

This is just I want.

Thanks again for your time!!.

Best regards 

bigsofty

I have my own camera (class) that I will post tomorrow, with lots of helper functions to manipulate the camera.
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

mentalthink

Thanks bigsofty, will be a great apport, because this little thing is complicated for me.

Thanks again, and excuseme for no reply before.