PlayMaker Help & Tips > PlayMaker Help

[SOLVED] Playing with add Force / add Torque

(1/1)

vonpopov:
Hi,

I noticed that when applying a "force" to an object, make it continue "moving/rotating" like that force was constant variable (like in the space).

What i would like is ; to stop (reduce to 0) the motion movement that force added. What is the best way to do it ?

1) is there any "get force" in order to know what value to opposite to the force ?
2) Should i use a get float in order to know what my object is doing, and trying to play with the value i get ? (like get the rotation, or translation from the object, and then try to stop it)
3) Of course, i could freeze the rotation and translation in the rigidbody, but ... because it instantly stop the motion, what is the difference betweend a simple "rotate", or "translation" action,  no difference at all ? so no interest .

What i would, is the force coming back to what it was before puting the force, it means = 0 , but progressivly.

any clue ? :)

Lane:
Easy way: Add Drag on the rigidbody.

Hard way: Design an IK driven sort of system translates player input into an estimated goal and that inputs torque/force authentically onto the hull. ie thrusters literally push the hull at a point and based on control input the system decides which ones to fire. It would see that if input was 0 then if we're still spinning it should fire opposite thrusters to stop the ship from spinning, assuming there is 0 drag (space).

vonpopov:

--- Quote from: Lane on February 14, 2014, 11:27:30 AM ---Easy way: Add Drag on the rigidbody.

Hard way: Design an IK driven sort of system translates player input into an estimated goal and that inputs torque/force authentically onto the hull. ie thrusters literally push the hull at a point and based on control input the system decides which ones to fire. It would see that if input was 0 then if we're still spinning it should fire opposite thrusters to stop the ship from spinning, assuming there is 0 drag (space).

--- End quote ---


The easy way was what i needed :D
I found my way out (thanks to you!!! and your "drag advise") by tweaking the "Angular Drag"

Now it works :D , hell yeah :D

Thanks you

Navigation

[0] Message Index

Go to full version