We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Car driving, new try

Home Forums Puzzles Car driving, new try

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #12370
    alfred
    Customer

    Hello,
    first let me say: physics is a very great step for Verge! and brings a lot of possibilities to make games. :good:

    I’m trying to build a car driving game.
    See attachement.

    The rotation of suzanne determines the direction of movement.
    But how can i also control the rotation of the cube.
    I want him to drive like a car.
    A car is always aligned in the direction of travel

    How can it be done with puzzles?
    Thanks for ideas!

    :bye: :bye:

    #12429

    Hi Alftred. You need to apply force or impulse to your body in the direction returned by the “get object direction” puzzle.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #12454
    alfred
    Customer

    Hello Alexander,

    i tried this….
    movement works perfect,
    but there is still no rotation with “cube” :scratch: :scratch:

    maybe a screencast would help ;-)

    thank you in advance :)

    #12458
    alfred
    Customer

    use nunpad “1” “3”
    to organize the direction
    and key “m” to start movement

    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:0c6623d342/applications/physics_Test-02/physics.html

    #12468
    alfred
    Customer

    tesdrivers welcome!

    http://www.valtlbauer.de/physics-02/Index_auto.html

    how does it work for you? :bye: :bye:

    #12470

    I believe you need to rotate the object as well. To do so you can try applying torque vector to it (such as [0,0,1]) or snap it to the auxiliary object which represents direction.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #12471

    BTW, ready-to-use vehicle setup is in our TODO list.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #12472
    alfred
    Customer

    Hello Alexander,

    BTW, ready-to-use vehicle setup is in our TODO list.

    :good:

    attached my puzzle-construction.
    Improvements are welcome!

    :bye: :bye:

    #12514
    294883025
    Participant

    Can you upload files for me to learn?

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.