Physion

  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Username Password: Remember me

Pantograph arm
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Pantograph arm

Pantograph arm 3 years, 8 months ago #839

  • Lemor
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I'm new in Physion, I'm trying to create an Pantographic arm with 3 or more section and I know how join it but I can't understand how add more segmentes in edit mode because I dont' know how rotate or freeze it.
Have some suggestion or tutorial link about that?

Regards
Lenny.

Re: Pantograph arm 3 years, 7 months ago #842

  • Lynxx
  • OFFLINE
  • Gold Boarder
  • Java/C#-Developer
  • Posts: 223
If you install zzz_mousefilter, it allows you to move/rotate & scale objects with your mouse while pressing different modifiers (shift, alt & ctrl).
You can also change the Angle of objects yourself in the Properties-Box of objects.

And with Selection Toolbar you can move objects with arrows onscreen.
Or you change the X/Y-Values yourself ..

You surely need objects in layers, take a look here.
You might find Objectlist-Dock useful to select objects which are behind others.

Freeze it? .. I guess you want a "reset" function? Write down all your parameters of your objects which could change in the scene. Make an object with has a function in OnKeyPress, which look something like this:
 
function resetBody(body, x, y, angle) {
// Stop all movement
body.AngularVelocity = body.LinearVelocityX = LinearVelocityY = 0;
body.X = x;
body.Y = y;
body.Angle = angle;
}
 
// when key R ist pressed (R for Reset)
 
if (key == Qt.Key_R) {
// All your items with it's default-values ..
resetBody(item4, -4, 11, 0);
}
 


You will only get the keypress when the scene is active, but this function will also work when the scene is in pause mode.
You can check with
 
if (world.running()) {
...
}
 

if the scene is currently active.
Infinity is vast, especially near end.
bye, Lynxx
  • Page:
  • 1
Moderators: Glenn555
Time to create page: 0.08 seconds