Home Contests & Challenges Archives Team Fortress 2
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

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 20
    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 20
    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 20
    Sorry, I should've pasted from my item importer. Yep, it needs to be is_flexible.
Sign In or Register to comment.