Hello. This has bothered me for a while with all of my mods, so right now it is not specifically for any certain mod. The problem: there appears to not be any way to set a base rotation for interior cameras. When you have selected an interior camera, of course, you can rotate it. This rotation persists. However, when the user initially spawns the car or reloads it (ctrl +r, not just resetting it), the rotation of the camera is always forward. I am wondering if there is any way to set a starting rotation for a camera, that way, on initial spawn or reload, the camera starts off facing in that specific direction. There are a multitude of cases that I want to be able to use interior cameras for (my NASCAR mods) that require a base rotation: - Rear bumper camera (facing back) - Cockpit camera (placed on the dashboard, facing the driver) - Side camera (placed on the dashboard, facing out of the right side window) - Inside camera (placed on the right side of the dashboard, facing front and slightly left) Please let me know if this is currently possible, and if it is, how to do it! If not, I hope this feature can be added in a future update.
the relative camera will work. It starts out on the hood of most cars and then you can move it around with WASD. it seemed to stay wherever I left it after a reset but you have to move it to each spot individually though. it stays fixed to the vehicle though so I think it would probably do what your looking to accomplish
I don't just mean for my session, I mean built into a mod. Meaning anyone who loads up the mod will have the specific interior camera start at the defined rotation.
You need to use custom ref nodes for the camera: https://documentation.beamng.com/modding/vehicle/sections/camera/
Thank you, I will try that! Also, is that documentation section new? I swear I couldn't find it this morning. --- Post updated --- This is weird. It changes something, but when I try to switch to that camera, it throws this error and the camera does not work:
You must have messed up the syntax, most likely you forgot a colon somewhere which is a common mistake with these cameras. This section of documentation is at least 2 years old by now, recently it was updated it seems, but the info about camera refnodes has been there the whole time.
This is weird. It changes something, but when I try to switch to that camera, it throws this error and the camera does not work: This is what I have in terms of syntax: --- Post updated --- Ah. Now I see. The "IdRef", "IdBack", and "IdUp" need to have colons after them because they point to nodes. I see what you were saying. Now that I have fixed it, it works properly! Thank you!