CamerasInternal

CamerasInternal

From BeamNG

Revision as of 12:26, 9 June 2016 by AR162B (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CamerasInternal

CamerasInternal


Create an internal camera for the vehicle.
Difference between internal camera and chase camera :

  • the angle of the internal camera depends of the inclination of the vehicle (RefNodes)
  • you can't zoom in or out
  • The chase camera will turn around the vehicle / The internal camera will turn (with Numpad key) on it self


Arguments

Arguments

Name Type Optional Default Value Description
X float NOk n/a The X (left/right) position in 3D space
Y float NOk n/a The Y (forward/back) position in 3D space
Z float NOk n/a The Z (up/down) position in 3D space
fov float NOk ~55 Field of view
id1 string NOk n/a Create a beam between the camera node's and the node %id1%
id2 string NOk n/a Create a beam between the camera node's and the node %id2%
id3 string NOk n/a Create a beam between the camera node's and the node %id3%
id4 string NOk n/a Create a beam between the camera node's and the node %id4%
id5 string NOk n/a Create a beam between the camera node's and the node %id5%
id6 string NOk n/a Create a beam between the camera node's and the node %id6%
cockpitCamera boolean Ok false Cockpit camera is used by the UI apps to disable apps when in cockpit view

Example of CamerasInternal

Notes are marked with "//"

	
	 "camerasInternal":[
		["x", "y", "z", "fov", "id1:", "id2:", "id3:", "id4:", "id5:", "id6:"],
		{"nodeWeight":2}, //Weight of the camera node
	    {"selfCollision":false} //If the camera node can collide with the vehicle
	    {"collision":false} //If the camera can collide with the world and other vehicles
		{"beamSpring":150000,"beamDamp":750}, //Spring and damping of the camera support beams
		[0.0, -0.7, 1.15, 75, "f6r","f6l","f5r","f5l","p1r","p1l"], //Offset position and 6 support beams
		[-1.25, 0.3, 0.9, 75, "f1rr","f2rr","f5rr","f6rr","f1r","f5r"],
		[0.336, 0.10, 1.12, 65, "f1ll","f1r","f2ll","f2r","f8l","f8r",{"cockpitCamera":true}] //Cockpit camera is used by the UI apps to disable apps when in cockpit view
	 ],