hinge gizmo rotating

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

hinge gizmo rotating

Postby blackbird_dream » Thu Mar 08, 2018 9:41 am

https://ufile.io/94y5d
In the picture the gizmo frame of the Newtonbody is rotating slowly, but the hinge itself doesn't rotate as the mesh attached to the GameObject does'nt rotate either.
I don't understand
User avatar
blackbird_dream
 
Posts: 354
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Re: hinge gizmo rotating

Postby Sweenie » Fri Mar 09, 2018 1:47 am

Not sure i fully understand, do you mean the debug gizmo indicate that the forklift wheel is rotating although the forklift isn't moving?
Sweenie
 
Posts: 498
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: hinge gizmo rotating

Postby JernejL » Fri Mar 09, 2018 3:42 am

If the wheel should be rotating, then this looks like the matrix for tyre is not updated correctly?
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: hinge gizmo rotating

Postby blackbird_dream » Fri Mar 09, 2018 4:21 am

.
Last edited by blackbird_dream on Fri Mar 09, 2018 5:11 am, edited 2 times in total.
User avatar
blackbird_dream
 
Posts: 354
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Re: hinge gizmo rotating

Postby blackbird_dream » Fri Mar 09, 2018 4:27 am

User avatar
blackbird_dream
 
Posts: 354
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Re: hinge gizmo rotating

Postby blackbird_dream » Fri Mar 09, 2018 4:49 am

here a capture
https://ufile.io/fkp1o
The truck is rotating slowly around a vertical axis. This is correct at this stage of modeling.
I just added a side force intersecting the hinge axis of the wheel (body.GetBody().AddForce ). As the force application point lies on the hinge axis and as the hinge stiffness is huge, the relative rotation of the wheel (around the truck) should be null and it seems to be.
while the truck rotating, the frame (RGB arrows) keeps aligned with the global frame. It represents the wheel GameObject in my opinion.
The gizmo represents the Newtonbody attached to this GameObject. It is not aligned with the global refrence and it is not aligned with the longitudinal axis of the truck either although the wheel's mesh keeps well along the longitudinal axis.
Last edited by blackbird_dream on Fri Mar 09, 2018 5:15 am, edited 3 times in total.
User avatar
blackbird_dream
 
Posts: 354
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Re: hinge gizmo rotating

Postby blackbird_dream » Fri Mar 09, 2018 4:55 am

the NB gizmo is rotating (/global ref) twice the angle the whole truck's rotation angle.
You can see here :
https://ufile.io/0vbj4
Initially the truck was positioned along the blue arrow (front/back axis). At the capture instant it has rotated of 90° and is now along the red Arrow. The NBgizmo has turned 180°.
I've deactivated the meshrendering option of the wheel's mesh
User avatar
blackbird_dream
 
Posts: 354
Joined: Wed Jun 07, 2006 3:08 pm
Location: France


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 20 guests

cron