As I work on a basic game using Three.js for rendering and Physijis for physics, my question can be applied to games in general.
In games, players often display movement that appears disconnected from the physics engine. They can accelerate instantly and stop just as abruptly. However, players can still experience falls and collisions with objects according to the rules of the physics engine.
Keep in mind that my specific issue involves a player with a camera object that does not adhere to the physics, although it can be linked to a physical object.
What is the most effective method to achieve this effect? I've considered a few solutions, but none seem completely satisfactory:
Do not physically attach the camera, just translate it according to the player's movement. This method, however, would disregard collisions and bypass the physics engine.
Physically attach the camera and apply force to the physical object. This approach involves frictional forces and subjects the player's movement to the influence of the physics engine.
Any thoughts on this issue? (I found a similar question at "", but it did not receive any answers)