How to Move An Entity Along Arc Path

How to Move An Entity Along Arc Path

nathan307
Enthusiast Enthusiast
396 Views
1 Reply
Message 1 of 2

How to Move An Entity Along Arc Path

nathan307
Enthusiast
Enthusiast

Dear Friends,

 

 

      How to Move An Entity Along Arc Path while Dragging  in C++..

0 Likes
397 Views
1 Reply
Reply (1)
Message 2 of 2

Balaji_Ram
Alumni
Alumni

Hi,

 

Please try implementing a jig to move the entity along the path that you want.

 

Here are the steps that you may need to follow :

 

1. Implement an AcEdJig such that it is aware of the entity to move and the arc to constraint the path

2. In the Sampler method, the "acquirePoint" will provide the current position.

    Based on the acquired point and the arc, identify the position of the entity being moved.

3. In the Update method, transform the entity to the identified location.

 

If you are new to jigs, please refer to this sample from ObjectARX SDK to get some understanding of jigs.

ObjectARX 2015\samples\database\elipsjig_dg

 

 

Hope this helps.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes