PiBoSo Official Forum

GP Bikes => Support => Topic started by: h106frp on February 29, 2020, 10:24:58 am

Title: Bike animated parts
Post by: h106frp on February 29, 2020, 10:24:58 am
Is support for bike animated parts (shock, cables) implemented in b17?
Title: Re: Bike animated parts
Post by: matty0l215 on February 29, 2020, 10:32:23 am
Yes

TFC made a tutorial over on the MXB forum- http://forum.mx-bikes.com/index.php?topic=2250.msg31977#msg31977

Title: Re: Bike animated parts
Post by: h106frp on February 29, 2020, 10:54:56 am
I tried this in b16 and it just caused GPB to crash on start-up, has anyone reported success in GPB?
Title: Re: Bike animated parts
Post by: matty0l215 on February 29, 2020, 10:55:31 am
I've sent you the file with my working bikes
Title: Re: Bike animated parts
Post by: h106frp on February 29, 2020, 10:00:28 pm
OK, so animation is implemented and I can make a spring but I cannot get the kinematic link to work so the ends do not stay put on the swingarm and chassis.

I guess I need to get this script to work (found in mxbikes)
  shock
   {
      name = shock_upper
      refobj = shock
      pos
      {
         x = 0
         y = -0.11
         z = 0
      }
      rot
      {
         x = -1
         y = 0
         z = 0
      }
      link
      {
         x = 0
         y = 0.05
         z = 0.04
      }
      slideaxis = y-
      slidescale = 1
      reflength = 0.115
   }

@ PiBosos : What are name and refobj supposed to reference in the model?

Thank you