Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Physics addJointConstraint #72

Answered by IRobot1
IRobot1 asked this question in Q&A
Discussion options

You must be logged in to vote

I found a solution applying PointToPoint constraint. However, its not ideal since I have to duplicate the object both with and without the constraint...

        <ng-container *ngIf="!isDragging">
          <ngt-mesh #fixed="ngtMesh" (ready)="cubeready(fixed.mesh)"
                    ngtPhysicBox [getPhysicProps]="getBoxProps"
                    [castShadow]="true">
            <ngt-box-geometry></ngt-box-geometry>
            <ngt-mesh-standard-material [parameters]="{ color: 'white' | color }"></ngt-mesh-standard-material>
          </ngt-mesh>
        </ng-container>

        <ng-container *ngIf="isDragging" ngtPhysicPointToPointConstraint [options]="options">
          <ngt-mesh #moving

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by IRobot1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant