Jump to content



Photo

[Alpha HOTFIX] Leaf target colliders to high

Unit3D Pinball Scripting Hotfix

  • Please log in to reply
5 replies to this topic

#1 BilboX

BilboX

    Enthusiast

  • Unit3D Pinball Team
  • 433 posts
  • Location:French Polynesia

  • Flag: France

  • Favorite Pinball: Metallica, Addams Familly, Scared Stiff, White Water

Posted 18 March 2014 - 08:16 AM


Had a quick look at it this morning. There is a stand up leaf target under the wire but probably 10mm lower but it's colliding with that still.

 

 

Lets say the leaf target's name is "Target1", you can try this hotfix (in the script initialisation, in "PrepareElements" for example):

        {
            Vector3 tmp = GameObject.Find("Target1_animated").GetComponent<BoxCollider>().center;
            tmp.y += 10f;
            GameObject.Find("Target1_animated").GetComponent<BoxCollider>().center = tmp;
        }

This should decay the box collider associated with your target 10 mm down (be carefull: += not -=).

 

For the next UP release, you should not need this because targets will use the FPM collision shapes...

 


UP2


#2 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 18 March 2014 - 07:48 PM

Worked. Thankyou


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#3 BilboX

BilboX

    Enthusiast

  • Unit3D Pinball Team
  • 433 posts
  • Location:French Polynesia

  • Flag: France

  • Favorite Pinball: Metallica, Addams Familly, Scared Stiff, White Water

Posted 19 March 2014 - 07:48 PM

Wow. First shot, I was not conviced of that :)... Great!


UP2


#4 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 19 March 2014 - 08:38 PM

Well, tried with 5f first shot which was good, the 10mm distance was an exaggeration :db: . Didn't test the leaf targets switch after though.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#5 BilboX

BilboX

    Enthusiast

  • Unit3D Pinball Team
  • 433 posts
  • Location:French Polynesia

  • Flag: France

  • Favorite Pinball: Metallica, Addams Familly, Scared Stiff, White Water

Posted 21 March 2014 - 09:11 AM

Have you tested targets by now?


UP2


#6 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 22 March 2014 - 12:07 AM

Tested just now, it's good.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000






Also tagged with one or more of these keywords: Unit3D Pinball, Scripting, Hotfix