thankx xray you helped me a lot , about s_noonan's method i will try it later thnx too. I a asked my teacher that how to calculate the distance between two objects in this type of plane, x,y coordinate axis, and he give me this formula : distance = square root of (x2-x1)^2+(y2-y1)^2
My question for other scene that i am making: How to ask a variable if it is since a number to other bigger ; for example : _voltagepositive && _voltagenegative == (0 to 9)?{action}:{} ; is it 0||1||2||3||4||5||6||7||8||9??
is for not write a lot of ''asks'': _voltagepositive && _voltagenegative == 0 ? {
scene.my.volt120 = [0.6, 0.6, 0.6, 1.0];
scene.my.volt120c = [0.6, 0.6, 0.6, 0.45]
} : {};
_voltagepositive && _voltagenegative == 3 ? {
scene.my.volt120 = [0.7, 0.7, 0.0, 1.0];
scene.my.volt120c = [0.7, 0.7, 0.0, 0.45]
} : {};
_voltagepositive && _voltagenegative == 9 ? {
scene.my.volt120 = [0.7, 0.7, 0.0, 1.0];
scene.my.volt120c = [0.7, 0.7, 0.0, 0.45]
} : {};
_voltagepositive && _voltagenegative == 12 ? {
scene.my.volt120 = [0.7, 0.7, 0.0, 1.0];
scene.my.volt120c = [0.7, 0.7, 0.0, 0.45]
} : {}; HELP TEACHER!
All is rally good on your scene ! just add a constant variable on the cilindres to change the level darkness of the shadows to make them a little bit more 3D
like : is the cilindre going up? {cilindre color = Shaded}:{cilindre color = illuminated}
make a geom (call it positionx = scene.my.xgeom1; and scene.my.ygeom1 to y pos, then do the same to cilindre, calculate the distance between both objects (((x1 - x2)^2)-((y1 - y2)^2))^0.5) ,here xray tells us how to know (coding something) if an object is going up or down given that the distance increases or decreases) on algodoo: scene.my.(GoingUp)? {scene.my.cilindrecolor = shaded}:{scene.my.cilindrecolor = illuminated}
Its ok! i like it but the circle dont changes the size(0) may it will be more realistic if there is any way to change it..! nice effect in front of other geomerty and back