Box2D Forums

It is currently Sat May 18, 2013 4:59 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jan 15, 2012 9:03 pm 
Offline

Joined: Sun Jan 15, 2012 8:45 pm
Posts: 1
Does the translation axis have units, or is it just a unitless axis along which motion occurs. "axis" in the API: void b2PrismaticJointDef::Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor, const b2Vec2 &axis)

I suppose the main question is - does the length of the axis have any bearing on behavior?
I ask this because I am updating automatic unit-conversion code to match what the documentation states.

In experimentation, I found that as the axis became too long, the simulation became unstable... it did have other problems because I forgot the polygon wrapping direction, but I do not think that should have had the catastrophic simulation effect I was experiencing.


Top
 Profile  
 
PostPosted: Mon Jan 16, 2012 1:49 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1515
Location: Tokyo
The axis you set in the joint def is normalized when the joint is created so it shouldn't make any difference. Did you find a case where changing only the axis length in the joint def would cause the problem to appear?


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


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:
Powered by phpBB® Forum Software © phpBB Group