Get animated blockreference's drawparams

I am attempting to build off of the PistonAnimation example. I have one object that is derived from the location of other animated blocks. For example, if I am given three points, I want to derive a box that represents the plane for those three points. The class is:

public class AnimatedPlane : BlockReference

Because I have to dynamically change the size and orientation of the plane(Mesh.box) I am handing this on the call to MoveTo(DrawParams) of the animation. However, when I stop the animation, the other animated blocks return back to their original insertion locations but the plane(Mesh.box) does not.

 

My question is:

Where do I access DrawParams required to call MoveTo(DrawParams)  or similar from another class? 

0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post