Skip to content

cling is invalid #225

Description

@yuyuyu223
cling: If True, the z-coordinate of the vehicle's position will be set to the ground level at the given
           position to avoid spawning the vehicle below ground or in the air.

Although cling=True, the cars still fly on the sky or flow in the water

image

I think the z-axis value does not set to the ground level.

  1. How can I get the ground level of each map?
  2. Is the cling a bug?

Activity

  1. dstark481 commented on Jul 2, 2023

    @dstark481
    Contributor

    Hello,
    There is a problem with cling, unfortunately. We are looking into it. You can press F11 and go into the 'world editor'. From there, you can find the world coordinates of everything in the map. On the left, you can see the 'scene tree' where everything is, or you can click on things which you are interested in. When you get the z-coordinate of the ground, you can try setting the vehicle to take the position (or maybe eg 0.5m above it).
    p1

    Best regards,
    BeamNG Tech Team

  2. AbdelrahmanElsaidElsawy commented on Dec 7, 2025

    @AbdelrahmanElsaidElsawy
    Contributor

    Hi @yuyuyu223,

    Thanks for reporting this issue! At the moment, the cling feature is still listed in our backlog and hasn’t been fixed yet.

    Do you have any further questions or need assistance with anything else in the meantime? You’re also welcome to join the conversation or share feedback with other developers on our BeamNG.tech forum.

    All the best,
    Abdulrahman Saeed
    Research Software Engineer
    BeamNG.tech Support Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions