![]() |
#4
|
|||
|
|||
![]() ![]() I have (fairly) successfully implemented yr slider motor class & it works great THANKS ![]() ![]() - How could I replace the keyboard control event for joystick buttons? I was using a timer to look for a joy.isButtonDown event but seem unable figure out a way of using this method with yr wonderful SliderMotor class! ![]() - When lowering the forks sometimes the item that I was carrying (cages or pallets) get 'stuck' in thin air and only drop if they get knocked by the forks ![]() ![]() Here is the code for the cages: Code:
top =cage1.collideBox(node = 'Cage_Top',bounce=0) top.setFriction(0.5) bottom = cage1.collideBox(node = 'Cage_Bottom',bounce=0) bottom.setFriction(0.5) side1=cage1.collideBox(node='Left_Ones',bounce=0) side2=cage1.collideBox(node='Right_Ones',bounce=0) cage1.enable(viz.COLLIDE_NOTIFY) The forklift is a purely physics based affair rather than being based upon animations or links (as I had already mentioned last yr ![]() Code:
fork1 = flt.getChild('Blades') forks = fork1.collideBox(bounce=0) fork1.enable(viz.COLLIDE_NOTIFY) forks.setFriction(1) Thanks in advance ![]() |
|
|