{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicuwq27a4gp6gn7of7yhn2dmlpn5g3zrkill6mhkjmsn6k7cci43a",
"uri": "at://did:plc:dxjzgxe7cvirxkwfjr2tjspt/app.bsky.feed.post/3mmwbbsel6i62"
},
"path": "/t/jme-3-10-0-alpha5/49602#post_4",
"publishedAt": "2026-05-28T14:33:01.000Z",
"site": "https://hub.jmonkeyengine.org",
"tags": [
"@Override"
],
"textContent": "The flycam in this test build seems to have a bug; it acts like the movement key is being held down, so the camera just keeps drifting.\n\nI didn’t make any keyboard input and the camera was also moving.\n\n\n package com.mygame;\n\n import com.jme3.app.SimpleApplication;\n import com.jme3.material.Material;\n import com.jme3.math.ColorRGBA;\n import com.jme3.renderer.RenderManager;\n import com.jme3.scene.Geometry;\n import com.jme3.scene.shape.Box;\n\n public class Main extends SimpleApplication {\n\n public static void main(String[] args) {\n Main app = new Main();\n app.start();\n }\n\n @Override\n public void simpleInitApp() {\n Box b = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", b);\n\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.White);\n geom.setMaterial(mat);\n\n rootNode.attachChild(geom);\n flyCam.setMoveSpeed(50.0f);\n\n }\n\n @Override\n public void simpleUpdate(float tpf) {\n //TODO: add update code\n }\n\n @Override\n public void simpleRender(RenderManager rm) {\n //TODO: add render code\n }\n }\n\n\n\n\nI conducted a simple test using this code.\n\nIf I use flyCam.setEnabled(false); Then the camera will not move.\n\nAfter conducting an investigation, I identified the problem.\n\nDue to minor thumbstick drift on the connected Xbox controller, we should apply a deadzone threshold and ignore any input below it.",
"title": "jME 3.10.0-alpha5"
}