Thanks Anton_S,
But I would like a radar of this style !! Of my model Sketchyphysics for MsPhysics!
3D Warehouse
3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp.
(3dwarehouse.sketchup.com)
Thanks Anton_S,
But I would like a radar of this style !! Of my model Sketchyphysics for MsPhysics!
3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp.
(3dwarehouse.sketchup.com)
Hello, I would like to create text that does not of the world of the !! Example: the objects far from the center of the axis!
And I would like to create lines, shapes, points !! A radar...
To get local velocity, along the body's Y-axis, you got to transform the global velocity relative to the body first, then get the Y component:
CODE: SELECT ALL
loc_vel = this.get_velocity.transform(this.get_normal_matrix.inverse)
vy = loc_vel.y
===================
problem!!!!!!
Bonjour,
Je voudrais lire la vitesse D'un corps sur l'axe Y interne,no axe Y mondiale !!!
J'ai essayé get_velocity...
set_var("speed_Y",????)
Hello,
I would like to read the speed of a body on the internal Y-axis, no Y-axis world!
I tried: get_velocity...
set_var("speed_Y",????)
erreur Masse !!!! v1.0.0
no reset position ! big masse
Final base
3D Warehouse is a website of searchable, pre-made 3D models that works seamlessly with SketchUp.
(3dwarehouse.sketchup.com)
@Anton_S
@body.set_omega([Internal body axis , 0, axes in global space]) ???
ex:
*onStart{
@body = simulation.find_body_by_name('body')
}
onUpdate{
r_body = @body.get_matrix
ax = Geom::Vector3d.new([key('up'), 0, 0]).transform(r_body)
@body.set_omega([ax.x, 0, key('right')])
}*
Add joystick(:rightz) and joystick(:leftz) for joy(RT) and joy(LT) please.
for xbox controler.
@anton_s said:
@luckyvac My appologies for not responding any sooner. I am a bit busy. In short, it's possible to have the servo angle correspond to the table values at time t. The table with angles and times must be converted to a Ruby Hash and then the rest is easy. I will examine your model in depth soon and we'll see what can be done to get the guitar stringing.
@TheSniper Apparently there were a few reports about the dialog options not working properly on Mac OS X and that's not good. I will check it out soon.
@SynSuka3D The
joystick
function accepts four symbols and each of them correspond to an axis on one of the joysticks:
joystick(:leftx)
returns X position on left stick.
joystick(:lefty)
returns Y position on left stick.
joystick(:rightx)
returns X position on right stick.
joystick(:righty)
returns Y position on right stick.The position ranges from -1.0 to 1.0.
Here is the documentation link to the function: http://www.rubydoc.info/github/AntonSynytsia/MSPhysics/MSPhysics/CommonContext#joystick-instance_method
I suggest you explore the MSPhysics scripting documentation for specs and other functions that might be useful, such as
joybutton(button)
.
https://youtu.be/b0YBVqUhMdU xbox controller faill script ?
Hello
Problem of direction axes
Xbox Controller
Joystick righty) is X-XAXIS position on right stick.???
Joystick rightx) is axes button LT.????
No axes Y-XAXIS right stick.???
please.
Thank you Anton_S
Good !!!
manage transparency of objects ?
alpha ? script
Envoyé de mon PRO 5 en utilisant Tapatalk
I tried :
onStart{
@box = simulation.find_body_by_name("box")
or
@box = simulation.find_group_by_name("box")
}
onUpdate{
if key("up") == 1
@box.material.color = [0, 255, 0]
Else
@box.material.color = [255, 255, 255]
end
}
Envoyé de mon PRO 5 en utilisant Tapatalk
help me if please.
thanks Anton_S. I would like to select a body which is in a group !!
and implement action (rotated, hide, change color ....)
fr: je voudrais faire pivoté un solide dans un groupe please !
eng: I would like to rotate a body found in a compossent !!