Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    Problem about MTSDrag

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi Admin,

I can use <OnDrag Action="MTSDrag"/> to set a drag action on an object when the cursor move over it.
My question is: I need to rotate the object even the cursor is move over it, until the user press down a specific key (e.g. 'A'), he can drag the object while the left button is pressed .

Is it possible?

Thanks
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
This is what I figured out:

<MTSInteractor Name="idrag" Active="0">
<Target Name="MTSInstance.k1" />
<MTSHandle Action="MTSDrag" Event="MouseDrag" />
</MTSInteractor>


<MTSInteractor Name="down">
<MTSHandle Event="KeyDown" Action="MTSAssignProperty" Target="MTSInteractor.idrag::actv" Value="1"/>
</MTSInteractor>


it works Smile

My question is :
1) how to set keyup to set 'actv' back to '0'
2) If there are 3 objects (k1,k2,k3) in the scene, how to modify the codes?
 
Posts: 181 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  General Topics    Problem about MTSDrag