Slick Forums

Discuss the Slick 2D Library
It is currently Sat Feb 17, 2018 9:20 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: amount of energy Reduce.
PostPosted: Fri May 09, 2008 5:25 am 
Offline

Joined: Mon Apr 21, 2008 4:40 am
Posts: 5
in the demo
body = new StaticBody("Pen1",new Box(20.0f, 20.0f));
body.setPosition(70.0f, 100);
world.add(body);
ball = new Body("Ball",new Box(10.0f, 10.0f), 1000);
ball.setPosition(70.0f, 170);
ball.velocity.x=100;

world.add(ball);

j = new BasicJoint(body,ball,new Vector2f(70,110));
j.setRelaxation(0);
world.add(j);

why the amount of energy Reduce. i think the amount of energy should be Unchanged . and then ball .velocity.length should be Unchanged .
how to make is ok ??


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group