![]() UpdateTime(float): How often the Camera sensor should update its readings in the simulator (in seconds). What follows is a complete list of these arguments: If any property is not set manually then a default value is used, so it is entirely possible to create the Camera with args being an empty table. The args parameter is a Lua table containing as many of the following properties as required. This can be nil if the Camera is not to be attached to any vehicle. ![]() SensorId = extensions.tech_sensors.createCameraWithSharedMemory(vehicleId, args) SensorId = extensions.tech_sensors.createCamera(vehicleId, args) We can create the Camera either with shared memory or without, using either of the following commands: ![]() Using this API, a Camera sensor can be created with various desired properties, and either attached to a vehicle or to a fixed point on the map. Camera sensors are exposed to Lua through the sensors extension in the tech folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |