-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Li :) #26
Comments
looks good, keek up the work. |
Hey Li, sry, but i can’t change the constraint axis …. Can u make something ( please )? Thanks … J
This is because graphically … Da: Yang Li [mailto:[email protected]] looks good, keek up the work. — |
sorry, I'm not understand, how you set constraint axis? It's should be ok set pivotInA.
|
I think i need a panel or a window to edit physics material properties like restitution for example ( simulate a soft ball ) the mass which is set to 0 make the object static and not dynamic. A panel or a window to manage the physics world properties. A panel or a window to manage the physics vehicle properties ( wheel, collision shape, and so on ). A panel or a window to manage soft bodies properties. J The hinge constraint need one or more axis as parameter to limit the constrained object rotations only to that axis, right ? This is the LUA script for the pinball palette: GStage = nil FlipperLeft = nil -- Add stage and objects references function setupObjects( _GameStage, _Objects )
-- RightPalette.extra.physicsProperties.linearFactor.x = 1; -- RightPalette.extra.physicsProperties.linearFactor.y = 0; -- RightPalette.extra.physicsProperties.linearFactor.z = 1;
// CONSTRAINED OBJECT AXIS OF ROTATIONS
-- _softness used by obsolete version of solver and left for compatibility; -- _biasFactor applied as a factor to constraint error -- _relaxationFactor controls bounce (0.0 == no bounce)
-- -- constraint.physicsConstraint:setLimit( -math.pi / 6, math.pi / 6 ) -- -- AWPHingeConstraint.setAngularMotor(_enableMotor:Boolean, _targetVelocity:Number, _maxMotorImpulse:Number):void // THE SIMULATED SPRING FORCE ( THE PALETTE RETURN A THE ORIGINAL POSITION
end function LeftPaletteUpdate()
end -- AWPRigidBody.applyCentralForce(force:Vector3D):void -- add force to the rigidbody's mass center -- AWPRigidBody.applyCentralImpulse(impulse:Vector3D):void -- add impulse to the rigidbody's mass center -- AWPRigidBody.applyForce(force:Vector3D, rel_pos:Vector3D):void -- add force to the rigidbody, rel_pos is the position in body's local coordinates -- AWPRigidBody.applyImpulse(impulse:Vector3D, rel_pos:Vector3D):void -- add a impulse to the rigidbody, rel_pos is the position in body's local coordinates -- AWPRigidBody.applyTorque(torque:Vector3D):void -- add torque to the rigidbody -- AWPRigidBody.applyTorqueImpulse(torque:Vector3D):void -- add a torque impulse to the rigidbody function KeyDownEvent( event )
-- FlipperLeft.extra.physicsProperties.angularVelocity.x = 0 -- FlipperLeft.extra.physicsProperties.angularVelocity.y = 1 -- FlipperLeft.extra.physicsProperties.angularVelocity.z = 0
end Da: Yang Li [mailto:[email protected]] sorry, I'm not understand, how you set constraint axis? It's should be ok set pivotInA.
— |
Do you mean need set axisInA and axisInB property? I will take a look.
|
Hi, I have added setAxis function in hinge joint, update it in dev branch |
Hi Li, really thanks ! What I need to do, is a software that is like MAX or MAYA or BLENDER or Unity. And for now Game Maker promising … ;) So after i have composed all my scenes ( video, HUD or menu, 3DScene ( means all, animation, physics, particles systems, effects ( light, post process, ecc ), ecc ecc ) I need I way to thake all this and make it playable. ( switch scenes can be caused by Time, Events, User action, ecc ) Games Maker use a pieces of software ( engine ) that can be used as “interpreter” so I think I need a “player” like Unity…. For example I can add a camera to one scene object and switch the camera if Games Maker enter “play”, or i must see, “simulation” mode… ( These are different… ) Now I need to manage all the “object” that Away 3D expose, this means Games Maker must be able to Add, Clone, Array, Delete, Modify all the properties, Moves, Align, Edit mesh by using “modifiers” simply access the vertex data… ecc ecc ecc Add modeling, mesh animations ( bones graphically this is not to hard J I think a container “local transform” and Meshes or Line segments ;) ), texture painting features I need to see if access and/or manage mesh faces can be made… For example by using segments to highlights these faces… Add vertex to these mesh and so on.. And others type of modifiers like cut plane, melt, explode, shell ecc. Away already have some of this kind of “modifiers”… This means that the object management must go in deep… Obviously I can import objects from max for example… and for now this is the only way ( for now ) to have animated mesh, for example… Manage all this is not simple, and I need to start with the basic and go in deep… And because I have more than one method to implement at all, Games Maker are stable and instable …. As you certainly know MAX use reactor first, MassFX now (NVidia PhysX) or Bullets in Blender J. Now, I need to manage all Physics properties by using the graphic interface so in this way I can make Games, Simulation, Simple scenes ecc ecc simply by using Games Maker, Away3D, and Away Physics... I’m working on !!! J Thanks ! Da: Yang Li [mailto:[email protected]] Hi, I have added setAxis function in hinge joint, update it in dev branch — |
The video i have promised you: :) |
Now I'm in trouble... http://www.geeksforgeeks.org/structure-member-alignment-padding-and-data-packing/ Now, Getters and Setters are available in Visual basic for example. This is because, the Hinge constraint can be used to link two objects ;) The hinge constraint need to know the constraint parameters for two reference point... public function setAxis(axis:Vector3D):void { What is the reference point here A or B :) ? Can i specify the axis for the reference point A or B ? I can add setters ( AWPHingeConstraint ):
but i have only z here... what this means... ? Help me Li ... :) |
This are the position of the constraint relative to the object ( object space ): New constraint position: Vector3D(-7.000000029802322, 0, 0) Another question... :) The others constraint can be managed by Games Maker ... ??? I don't know ... :) |
Hey Li where are you from... Can i take a look to your country in some way ? I'm here: https://www.facebook.com/luca.filippini.902 |
The last thing for today. You can take a look in to the main folder. I have more and more but, as you know... |
hinge constraint is a fixed axis constraint, in bullet engine there is no a function to set axis in pivotA and pivotB separately. In other constraints you can set pivot and axis separately. I'm from China. I can't visit the facebook link bacause the great firewall. |
yea, I use blender and unity3d. thanks for the link. |
This means i must set the axis when i create the constraint and after i can’t change that axis. I’m confused: http://bulletphysics.org/mediawiki-1.5.8/index.php/Constraints Normally two axis in hinge-connected objects should align and point to the same direction, such as a door. But you can set two axis as different vectors. btHingeConstraint( btRigidBody& rbA,
Yes I can impose that… Anyway for now i “can try to implements” ;) the others constraint… Thanks to you Li … ( about the firewall Proxy server ? ;) ) Da: Yang Li [mailto:[email protected]] yea, I use blender and unity3d. thanks for the link. — |
no, you can use setAxis function change the axis realtime. but the axisInA and axisInB should be always equality. |
Sry Li, i have two objects, and two matrix… Or may be I have a “container” and in this case I can multiply the matrix of the object1 by the container matrix and the matrix of the object2 by the container matrix, in that way I have the final transformation that refer to the container transformation. Like normal World, View, Projection or: finalTransform.identity(); finalTransform.append(world); finalTransform.append(camera); finalTransform.append(projection); It’s right for you ? Da: Yang Li [mailto:[email protected]] no, you can use setAxis function change the axis realtime. but the axisInA and axisInB should be always equality. — |
Thinking about this, as a real case, seems to be ok … Da: Yang Li [mailto:[email protected]] no, you can use setAxis function change the axis realtime. but the axisInA and axisInB should be always equality. — |
Not now but i want try to use PhysX: https://www.youtube.com/watch?v=zhRPU1WyrBI J J J ( I must see the hardware/software compatibility list but i if remember right … there are no problems… ) http://79.0.174.91:8086/AwayGamesMaker/PhysX-3.2.4_LINUX_SDK_Core/ Firefox and https://addons.mozilla.org/it/firefox/addon/downthemall/ I think is the function declaration proto that confuse me… , but anyway as usual thank for your help Li Da: Yang Li [mailto:[email protected]] no, you can use setAxis function change the axis realtime. but the axisInA and axisInB should be always equality. — |
And… i have this comment on my Hinge constraint creation function … J
Sry Li :P ( I’m lost ) Da: Yang Li [mailto:[email protected]] no, you can use setAxis function change the axis realtime. but the axisInA and axisInB should be always equality. — |
The constraint ( hinge ) can be succesfully moved ( initially the constrained object moves a bit away from the constraint but... ) . So the constraint can now be placed at the right pinball palette position ! ( I have spent some times for work with the program interface, materials, material methods, Lua scripts, lights, camera, ecc but the phisycs remain a priority in Game Maker ! ) so, for now, thanks Li !
Some Games Maker images here:
https://www.facebook.com/pages/Estiva-Community/248102938603578?ref=hl
The text was updated successfully, but these errors were encountered: