Jul 8, 2021 08:26
This does not have anything to do with Unity anticipating or not anticipating your unique preference for how you'd like it to work. absence of a correct way to move an object due to user input is not a unique preference :)
Jul 7, 2021 17:24
@DMGregory, how did not Unity anticipate something like this. This problem makes me even doubt if I want to continue using Unity. :(
Jul 7, 2021 17:24
@DMGregory, yes you are right. I just tried it and it roughly speaking has the same effect as setting the rigidBodyToMove.velocity does. So, even this does not work. I wish there would be a way to put my addendum into the unity physics computations somehow. :(
Jul 7, 2021 17:24
That is a bad idea I think. Because it looks like a technical debt putting all the physics features not into the physics engine, but in the entity which should be affected by the feature. Except character I have enemies, grass, etc. Should I add wind to all of these as well? I will have other physics features, should I put them all on my character as well? I think, no. :)
Jul 7, 2021 17:24
@DMGregory, I am not quite sure yet (still researching at experimenting), but I think I found a solution. This thread made me think that the Rigidbody.MovePosition method was created specifically for my use case. :)
Jul 7, 2021 17:24
@DMGregory, sounds like it is what I was looking for. I will try to check it out during the next 2 days and will let you know if it worked for me. Thank you.
Jul 7, 2021 17:24
@DMGregory, it seems that the linked questions is not what I am looking for. E.g. there is a wind which blows in characters back from right to left. And here a user which presses a button for a character to go from right to left. In your linked questions the character will move with the same speed all the time irrespectively of the wind presence, while I want the character to move faster when there is a wind and move as usual when there is no wind.
Jul 7, 2021 17:24
@Philipp, you are right. That is what I want. So, if there are no physical forces, I want to run with the same speed.
Jul 7, 2021 17:24
@Philipp, I want my character to run with a constant speed all the time, unless there is a wind, drag of surface changes or anything else physics related happens.
 

 Game Development

Game development and other polite discussion. Game development...
Sep 26, 2017 15:03
why should we?
Sep 26, 2017 15:01
help me, please
Sep 26, 2017 15:00
0
Q: Do not move an object back when the animation played in Unity

qqqqqqqHow do not move an object back when the animation played in Unity? I have a character: It is going to be divide into many pieces while I will play an animation. I created the animation using Unity: After the animation played I am turning on all the rigidbody2d components by setting kinemat...