How would I make a free-cam system kinda like this?? In mini empires RTS
Sorry for bad quality but you get the idea
What is the most optimized way to do this?? With the mouse still being free to move around
Help appreciated thank you!
How would I make a free-cam system kinda like this?? In mini empires RTS
What is the most optimized way to do this?? With the mouse still being free to move around
Help appreciated thank you!
Roblox has actually created an article about an isometric camera here, and for a moving RTS camera system like you want, you could raycast from the mouse’s location like this:
local mouseLocation = userInputService:GetMouseLocation()
local unitRay = camera:ViewportPointToRay(mouseLocation.X, mouseLocation.Y)
local cast = workspace:Raycast(unitRay.Origin, unitRay.Direction * 1000, RaycastParams.new())
if cast and preview then
--cast.Position is where you would want to focus the camera
end
Thank you I will check this out
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.