weird interaction bewteen scale and position

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

weird interaction bewteen scale and position

Postby blackbird_dream » Fri Dec 08, 2017 5:58 am

In Unity if you create a cube and change the scale.z by 2 (the cube is now extended along z direction).
Now if you create a child cube and want to move its position, the desired position coordinate has to be divided by 2.
For instance, if you want to translate the child cube by 1 along z axis you must specify 0.5.
In my opinion, it's not relevant to inherint the scale property to scale the position coordinates.

It s just a comment to contribute to making the plugin even more efficient.
User avatar
blackbird_dream
 
Posts: 354
Joined: Wed Jun 07, 2006 3:08 pm
Location: France

Re: weird interaction bewteen scale and position

Postby Julio Jerez » Sun Dec 10, 2017 6:28 pm

scale is one of those things that is suggestive.
We implemented the numricaly correct way of doing it which is concatenating them just beacuse that's how the engine does it internally. but we recognize this is alway a difficul issue, and for that i belive there is an option to not inherit the scale.
other that that the other alternative is to group the physics object under a dummy node located at the origin so that they are world space.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 14 guests

cron