![]() |
#2
|
|||
|
|||
You could reset the yaw to 90 degrees or -90 degrees everytime the gun try to go beyond the limit.
Ex: rho=gun.getEuler() if 90 < rho[0] < 180: ---> rho[0]=90 elif -180 < rho[0] < -90: ---> rho[0]=-90 gun.setEuler(rho) Last edited by Chapre; 09-21-2010 at 02:36 PM. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 04:26 AM |
Unable to perform 360 rotation using vizact.spinto | vijaykiran | Vizard | 2 | 09-29-2009 08:39 AM |
Object rotation | Andrey | Vizard | 4 | 06-13-2007 02:49 PM |
Child Object Rotation | paulgoldberg | Vizard | 5 | 09-05-2006 11:33 AM |
rotate to object | jargon | Vizard | 1 | 08-08-2005 12:20 PM |