Jump to content

diedir

Developers
  • Posts

    258
  • Joined

  • Last visited

Posts posted by diedir

  1. Hi with these settings i have a very stiff suspension :

    chassis:SetMass(2000)
    local tiremass=40
     suspensionDamper = 10
     suspensionSpring = 3000
     suspensionLength = 1
     lateralStiffness = 20
     longitudinalStiffness = 10000
     aligningMOmentTrail = 1.5
     friction = 1.0
    

    • Upvote 1
  2. in my opinion, that's mean

    you assign property or action to an object (could be anything as Roland said) that is not still loaded in memory

    try putting step and message ("here line xx all is right") to see where it fails

    but looking in engine.log you must have more to say for the failing line in the bottom.

    hope it helps

  3. first: if you find this post not appropriate feel free to remove it.

     

    This post to have a thought for all my french people who was cowardly attacked without a chance to save their live.

    Needed to express my pain for all (most young) which would never reach my age.

    Something is broken now for us. Hard to focus on something else for now.

    But as we know here, the Paris "devise" is : "Fluctuat nec Mergitur" and until someone standing up he will fight for his freedom and life quality.

     

    Sorry for posting a really off topic, but needed to share my pain with you, Leadwerks community which became a beacon for me on the internet sea.

     

    didier

    • Upvote 2
  4. Ok so, my english is rusty...

     

    1) Avant le départ de la course, je place un pivot à l'endroit de la voiture.

    2) Une fois la course partie, (premier loop) je calcule la distance entre le pivot et la position de la voiture au premier loop et je soustraie cette distance à la distance entre la voiture et le waypoint suivant.(ce qui me donne la distance restante à faire jusqu'au prochain waypoint)

    3) Je replace le pivot (placé en 1) à la position actuelle de la voiture pour le prochain calcul au loop suivant.

    je fais ceci pour tous les véhicules et la distance restante la plus petite me donne la place du premier, 2eme,3eme...etc

    4) Je garde les distances effectuées dans un tableau pour connaitre la distance effectuée sur un tour.

     

    voila je pense avoir été clair,

    hope it helps and sorry for my english ;)

  5. Hi

    here what i did for my game (still in work...)

     

    as Josh said and depends on the precision you want ( i put a pivot each loop):

    1) put a pivot where the car is before starting

    2) once started first loop calculate the distance between the new pos car and the pivot and substract the distance to next waypoint

    3) put the pivot where the car is now and calculate the raced distance and you have the first position car

    4) keep a track of the distance by car to calculate the entire track

     

    it is tricky because if some car goes far away very speedy it will be the first by pure raced distance but with the waypoint distance substracted, it is more accurate.

    something like this working good for me though.

  6. Hello

    i am trying to set a matrix based on raw data which i want to send to lua method

    SetEntityMatrix(entity,mymat)
    

    my problem is that TMat4 or Mat4 is not exposed in lua (2.5)

    How can i send the data ?

    Is it right to send a table like :

    mat={ix=1,iy=0,iz=1,iw=1,jx=1.....tw=1}
    

    Thank you for helping

  7. @nick.ace

    Hi, working myself on car AI, i would be very interested by your script, because i have had some working code until some gldrivers change some logic (axis or 0°-180° axis changes) and the code need to be reworked and i struggle a lot on this.

    so if you please, be my guest.

    thank you and

    merry christmas to all !

    • Upvote 1
×
×
  • Create New...