• Welcome to PiBoSo Official Forum. Please login or sign up.
 
May 25, 2020, 07:54:04 pm

News:

Forum registration problem: https://forum.piboso.com/index.php?topic=8372.0


Bike animated parts

Started by h106frp, February 29, 2020, 10:24:58 am

Previous topic - Next topic

h106frp

Is support for bike animated parts (shock, cables) implemented in b17?

matty0l215


h106frp

I tried this in b16 and it just caused GPB to crash on start-up, has anyone reported success in GPB?

matty0l215

I've sent you the file with my working bikes

h106frp

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