Giter Club home page Giter Club logo

Comments (5)

pascale-commits avatar pascale-commits commented on September 24, 2024

when specifying a vehicle you have the option to change its color by giving the function a string with the RGB values, f.ex.:

vehicle = Vehicle('ego_vehicle', model='etk800', licence='RED', color='255 265 0', color2='255 265 0', color3='255 265 0')

'color' is usually the body color, what 'color2' and 'color3' do depends on what vehicle youre currently using (they may change to the color of skins, the color of wheels, or nothing at all)

As far as I can see the python API does not support the configuration of any other vehicle properties but it is possible to change them in-game, though I guess this is not what you're interested in.

from beamngpy.

alessiogambi avatar alessiogambi commented on September 24, 2024

Hi, thanks for the example.

As far as I can see the python API does not support the configuration of any other vehicle properties but it is possible to change them in-game, though I guess this is not what you're interested in.

Actually, this is exactly what I am interested in. Maybe I should open a different issue or refine the description of this one?

from beamngpy.

pascale-commits avatar pascale-commits commented on September 24, 2024

Please add a more detailed description of what you are searching for :) I've reopened the issue.

from beamngpy.

pascale-commits avatar pascale-commits commented on September 24, 2024

Thanks for specifying.

It is possible to change main color of a car on the fly in the game. This is supported by the beamngpy lib through the <set_color> method of the vehicle class.
Changing other colors on the fly is not supported at the moment, but it is possible to change the available vehicle colors manually in the game in a given level by pressing ESC -> Selecting Vehicle Config -> Select Color Tab and adjusting the colors to your needs.

Setting new skins triggers a vehicle reload, so it is not possible to change them on the fly.

Yes, it is not possible to change any part of the vehicle that affects the deformation mesh. It is not possible to transfer the damage/deformation of one beam structure to another.

from beamngpy.

alessiogambi avatar alessiogambi commented on September 24, 2024

Great. Thanks for the clarification!

from beamngpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.