Material Question

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Material Question

Postby Stucuk » Sat May 15, 2010 11:09 am

Is it possible to make it so when a sphere hits a static wall that the sphere will loose no speed from the collision using materials or will there always be some speed lost? Currently im being bad and forcing the velocity of the Sphere to always add upto a certain value, which works fine(My world will only have a sphere that moves, everything else is static, at least what it will collide with).
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Material Question

Postby Julio Jerez » Sat May 15, 2010 4:02 pm

if you set restitution to 1.0 then it will bounce off with the same velocity more or less numerical error and engine inacuracies.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Material Question

Postby Stucuk » Mon May 17, 2010 12:10 pm

Im surprised that a value of 1.0 makes it gain speed. Id have thought that if anything it would loose speed when it hit walls.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Material Question

Postby Julio Jerez » Mon May 17, 2010 1:31 pm

It does no realy increase the speed, ahe it does is that the ampound of memento before and afert the collision repmain the same.

that is

M1*v1 + M1*v2 = r * (M1*V1' + M2*V2')

in all thre axis

when r is 1.0 then depend of how Mass and velocity are dirtributed soembody may gain speed but other will lose.

now you may see a Gain in momentum, because of the imperfection of the numerical descrte time simulation, teh impercation of teh contact position,
the imperfecatyion of teh contact force resoltions.
Ther are many factor that all play to add errors to the simulation, but in general the simulation do correlate wit the real world beheavior.

what are you doing?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Material Question

Postby Stucuk » Mon May 17, 2010 8:02 pm

Goal is to make a breakout style game(So i can only guess what mass/force/etc should be). Currently using 1 for the Mass of the ball. Ill proberly have to limit the velocity no matter what, just seemed odd that it would increase.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Material Question

Postby JernejL » Tue May 18, 2010 5:02 am

The error could be related to some floating point imprecision or have some other cause, you gave no examples that would enable us to find out the origin of the error.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Material Question

Postby Stucuk » Wed May 19, 2010 6:32 pm

Delfi wrote:you gave no examples that would enable us to find out the origin of the error.


Since Julio stated that it could gain or loose speed i didn't see the point in giving an example as its doing exactly what Julio stated.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: Material Question

Postby JernejL » Thu May 20, 2010 3:38 am

My mistake - i did not read the post properly.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron