Home Contests & Challenges Archives Team Fortress 2

Jigglebone that Rotates Along the Z-axis

What jigglebone values would I enter to make it only rotate along the Z-axis?

Replies

  • EmAr
    Offline / Send Message
    EmAr polycounter lvl 18
    EDIT: Angle constraints are used for that. If those don't give you the result you want, try, if it makes sense in your situation, rotating the bone 90 degrees and using yaw or pitch parameters.
  • EmAr
    Offline / Send Message
    EmAr polycounter lvl 18
    Actually, the example from the VDC wiki seems to do the job with little modification:
    $jigglebone "JigglyUpAndDown" {
    	is_flexible {
    		pitch_stiffness 100
    		pitch_damping 3
    		length 20
    		pitch_constraint 0 0
    	}
    }
    
  • Orgeston
    Hey, so, now when I try to compile my model I get this:

    ERROR: $jigglebone: invalid syntax 'pitch_stiffness'
    ERROR: Aborted Processing on 'player/items/heavy/Heavy_chair.mdl'

    This is my jigglebone:
    $jigglebone "Jiggle1" {
    	is_rigid {
    		pitch_stiffness 0
    		pitch_damping 2
    		length 2
    		pitch_constraint 0 0
    	}
    }
    

    EDIT: Is_rigid objects cannot have specific pitch/yaw damping/stiffness.
  • EmAr
    Offline / Send Message
    EmAr polycounter lvl 18
    Sorry, I should've pasted from my item importer. Yep, it needs to be is_flexible.
Sign In or Register to comment.