Modding Help Resizing vehicle hitboxes

Discussion in 'Starbound Modding' started by Atromixx, Aug 12, 2016.

  1. Atromixx

    Atromixx Scruffy Nerf-Herder

    Anyone know where I can resize a vehicle's hitbox?
     
  2. Atromixx

    Atromixx Scruffy Nerf-Herder

    Anyone?
     
  3. Atromixx

    Atromixx Scruffy Nerf-Herder

    I really need to know how.
     
  4. Monijir

    Monijir Scruffy Nerf-Herder

    The hoverbike's hitbox is defined in the .vehicle JSON.

    There's one for occupied and one for unoccupied, but they're bother arrays in under the "collisionPoly" key.

    [/CODE]
    "movementSettings" : {
    "collisionPoly" : [[-4.0, 0.5], [-2.0, -1.5], [2.0, -1.5], [4.0, 0.5]],
    "mass" : 4,
    "airFriction" : 2,
    "ignorePlatformCollision" : true,
    "gravityEnabled" : true,
    "collisionEnabled" : true
    },

    "occupiedMovementSettings" : {
    "collisionPoly" : [[-4.0, 0.5], [-2.0, -1.5], [2.0, -1.5], [4.0, 0.5]],
    "mass" : 4,
    "gravityEnabled" : true,
    "collisionEnabled" : true
    }
    [/CODE]

    This all goes to the motion controller, so you can adjust any of those properties here as well.
     
  5. Atromixx

    Atromixx Scruffy Nerf-Herder

    Thank you so much! Now I can finally update my mod!
     

Share This Page