Better camera would be nice
-
Joshu
Better camera would be nice
It would be nice for the ICameraSceneNode::setInputReceiverEnabled (bool enabled) to be split into two functions, one to turn on/off mouse input and one to turn on/off keyboard input, or at least one function with both parameters. I want to use the FPS Camera already in irrlicht as an RTS Camera, and I know how to do it too, but I don't have directx headers so can't recompile library. All that must be done is to allow mouse input to FPS Camera to be turned off and profive a public function CCameraRTSSceneNode::strafe() so that strafing can be called without pressing keyboard (this will work as camera panning).
-
Guest
Regardless of whether or not this has merit, you can roll your own.
You can derive your own camera class, and override its OnEvent function.
Then only pass on events to the parent class's OnEvent function based on the event type.
Or even generate your own events based on some other things, such as proximity of the pointer to the edge of the screen etc.
You can derive your own camera class, and override its OnEvent function.
Then only pass on events to the parent class's OnEvent function based on the event type.
Or even generate your own events based on some other things, such as proximity of the pointer to the edge of the screen etc.