![]() |
#1
|
|||
|
|||
Object + InteriaCube + Viewport problem
Here is the scenario. We have an object (lets say default male avatar) we have to randomly rotate in all x,y,z coords. After the object is rotated we want to enable our InteriaCube to then augment the avatars current euler, but only based on the viewport. For example if the avatar is facing right (after our random rotate) when we enabled the link, and we rotate our cube down and forward the avatar will rotate on it's side while still facing right. We don't want the cube to rotate the avatar based on it's coord system we want all the rotation of the avatar to be based off of the viewport (when using the interia cube).
Few Notes -When link is enabled between avatar & cube it must not change the direction of the avatar. The Cube is only suppose to augment the current euler of the avatar. -The viewport will never move -I've tried both manually augmenting the avatar's euler with input from the cube & using linking. I've tried quite a few different approaches to get this to work, but with no real success. Anybody happen to know how to set this up? -Random Rotation is already set avatar.setEuler(random.randint(0,360),random.randi nt(0,360),random.randint(0,360)); Any help would be great. ![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 04:26 AM |
The problem of tracker using via VRPN | _kj_ | Vizard | 2 | 08-13-2009 12:03 AM |
Freeform view on an animated object problem | jaylocco | Vizard | 2 | 06-08-2009 08:09 PM |
picking problem... | k_iwan | Vizard | 2 | 07-27-2007 07:57 PM |
Center Viewport on Object (5DT Glove) | bjgold | Vizard | 3 | 07-25-2006 03:22 PM |