NewtonCollision Scale and Offset

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

NewtonCollision Scale and Offset

Postby Adversus » Tue Dec 04, 2012 7:10 am

This has been changed so it doesn't use a ConvexHullModifier however Scale and Offset are not relative.

i.e. If you scale the node up it's offset doesn't change also to reflect this.

It's easy to fix however is there a reason why it's done like this?
Adversus
 
Posts: 29
Joined: Tue Oct 12, 2010 8:39 am

Re: NewtonCollision Scale and Offset

Postby Julio Jerez » Tue Dec 04, 2012 8:42 am

what do you mean if you scale a node up? what is a node?

in core 300 scale apply to all collsions, howver is no as general and is was in core 200 and 100
scale now sume that all of teh off diagonal of tsh scale matrix are zero. The make it posible to use for all collsion withoput lost of preformance
the scalesion of teh scale is as hgis

pw = pl * S * O * B

pw = point in shape in global space
pl = point in shape in local space

S is diagonal matrix represention of a non uniform scale matrix
sx 0 0 0
0 sy 0 0
0 0 sz 0
0 0 0 1

O is an ortnormal matrix tha repsenet the collsion shape offset,
B is an orthonormal matrix representing the body trasnform.

since the matrixu shape come before teh scale, yes changin teh matrix teh scale does no change the shape position
if this is what you ar refering too, I can geive you a pice of code to acompich that.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
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 0 guests