January 28, 20179 yr Converted this recently for someone who was interested in using it. Provides a smooth and fast mouse based Camera using Mouse.move and a lil math to compute where we should be looking. Gist: https://gist.github.com/Lem0ns/a485f7906db0c08d5458583401a81047 Usage is nearly identical to that standard Camera (will update soon, new ipb throwing me off lol) Camera lemonCamera = new Camera(script); lemonCamera.moveNorth(); // Directions lemonCamera.moveCamera(0, 33); // Moves yaw to 0, pitch to 33 lemonCamera.moveYaw(180); // Moves yaw to 180 lemonCamera.toEntity(npc); // Move camera to entity lemonCamera.toPosition(position); lemonCamera.toEntity(futureDest, entity); // Set camera angle before getting to our destination lemonCamera.toEntity(futureDest, position); Finally, thanks to @Ethan07 for the inspiration to make this class. His Camera can be seen here. Edited January 28, 20179 yr by Lemons
Create an account or sign in to comment