Skip to content

Angular Transform Drive is controllable when interactor is offset from the interactable #235

@thestonefox

Description

@thestonefox

The Angular Transform Drive (when a lever is made for example)

will control the angular rotation of the target even when the interactor is offset from the interactable

angulartransformissue

This shows the issue that the drive will start rotating when the interactor overshoots and starts pushing back the other way.

The drive shouldn't rotate until the interactor is at least back in line with the lever

image

The AngularJointDrive works correctly in this way:

angularjointissue

The issue is going to lie in the Zinnia.Tracking.Follow.Modifier.Property.Rotation.TransformPositionDifferenceRotation class, most likely in the CalculateAngle method.

It takes the target position (the lever) and the source (interactor) previous position and the source current position to work out the heading of the interactor to determine the angle.

it needs to only start applying the angle when the interactor is within a threshold of the actual lever perhaps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions