Get animated blockreference's drawparams
Christopher VanOosterhout
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
Please sign in to leave a comment.