Modding Help My mod have some colision space issue. Help me

Discussion in 'Starbound Modding' started by Kentyark, Mar 14, 2018.

  1. Kentyark

    Kentyark Scruffy Nerf-Herder

    [​IMG]
    Like dis. idk how to use colision space thing. Please help me out
     
  2. bk3k

    bk3k Oxygen Tank

    Well in that case you'd normally need to put your project up here so we can determine your issue, but this may help you figure out how that works.
     
  3. Kentyark

    Kentyark Scruffy Nerf-Herder

    Ah, I forgot about them.

    {
    "objectName" : "ArtyomHumvee",
    "colonyTags" : ["human"],
    "rarity" : "Uncommon",
    "description" : "Military Grade American Jeep.",
    "shortdescription" : "Desert Humvee",
    "race" : "generic",
    "category" : "decorative",
    "price" : 250,
    "health" : 10,

    "apexDescription" : "A wheeled machine, clumpy.",
    "avianDescription" : "How unelegant this machine is.",
    "floranDescription" : "Sssmells funny.",
    "glitchDescription" : "Interested. Human military transporting machine.",
    "humanDescription" : "It's military jeep.",
    "hylotlDescription" : "Human's wheeled vehicle.",
    "novakidDescription": "It looks like a wheeled... rhino.",

    "inventoryIcon" : "HumveeIcon.png",
    "orientations" : [
    {
    "image" : "Humvee.png",
    "imagePosition" : [-40, 0],
    "direction" : "left",
    "flipImages" : true,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ],
    "collision" : "platform",
    "collisionSpaces" : [ [-5, 1], [-4, 2], [-3, 3], [-2, 4], [-1, 4], [0, 4], [1, 4], [2, 4], [3, 4] ]
    },
    {
    "image" : "Humvee.png",
    "imagePosition" : [-40, 0],
    "direction" : "right",

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ],
    "collision" : "platform",
    "collisionSpaces" : [ [4, 1], [3, 2], [2, 3], [1, 4], [0, 4], [-1, 4], [-2, 4], [-3, 4], [-4, 4] ]
    }
    ]
    }


    This is it.
    Wait, but what is collisionSpaces exactly mean? Can I just make all numbers to zero?
     
  4. bk3k

    bk3k Oxygen Tank

    Those spaces are coordinates. [0, 1] is one tile to the right of [0, 0].

    Since your collusion type is platform, those spaces are where you'll have platform collisions. It will place a metamaterial which acts like a platform in those spaces.
     

Share This Page