www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: qcrist on August 21, 2011, 11:09:57 pm

Title: Camera Movement Collision Test
Post by: qcrist on August 21, 2011, 11:09:57 pm
Is there anyway to detect a collision with the Camera.moveCamera function?

Code: [Select]
camera.moveCamera(Camera.CAMERA_MOVEIN, 0.1f);
Title: Re: Camera Movement Collision Test
Post by: EgonOlsen on August 22, 2011, 06:59:04 am
No. Because the camera has no idea about how the world is constructed. You can use the checkCameraCollisionXXX-methods in World instead.