Origin changed event

Forum Forums Visual Components 4.0 .NET Addon Programming Origin changed event

This topic contains 1 reply, has 2 voices, and was last updated by Avatar jouha 11 hours, 23 minutes ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #15550

    I have two component and I need to keep their movement in sync. I know I can get their position changing event by TranslationRotationService, but how can I identify whether the origin of them has changed?


    Could you tell a bit more about the case? Are you changing origin of components?

    Python has OnSimulationUpdate event in vcScript that is perfect for monitoring any or many component location (PositionMatrix) during simulation run. So, by monitor one component you can set the location of another comp in the event handler by setting its otherComp.PositionMatrix and calling otherComp.update() to update the location.

    I believe in .NET you could utilize IRenderService.OnRequestRender event for similar monitoring and location updating.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.