Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move Softbody to position
#7
(21-04-2022, 12:09 PM)josemendez Wrote: What you wrote is a regular spring: Force = -kx (where K is the "speed" constant, and x the distance between the red ball and the softbody).

You could add a dampening factor to control and reduce oscillation. See:
https://phys.libretexts.org/Bookshelves/...cillations
I do not understand that Indeciso , so I just googled "unity velocity Damped Oscillations" and I found this (A simple follow script using damped harmonic motion : Unity3D (reddit.com)
The problem is this is working when I use rigidbody.velocity = velocity but its not wokring when I try to use rigidbody.AddForce(velocity) is it possible to use something like ObiActor.velocity instead of ObiActor.AddForce() ?
Reply


Messages In This Thread
Move Softbody to position - by Cysar - 20-04-2022, 06:28 PM
RE: Move Softbody to position - by josemendez - 20-04-2022, 06:37 PM
RE: Move Softbody to position - by Cysar - 20-04-2022, 07:10 PM
RE: Move Softbody to position - by josemendez - 21-04-2022, 10:40 AM
RE: Move Softbody to position - by Cysar - 21-04-2022, 11:36 AM
RE: Move Softbody to position - by josemendez - 21-04-2022, 12:09 PM
RE: Move Softbody to position - by Cysar - 21-04-2022, 02:21 PM
RE: Move Softbody to position - by josemendez - 21-04-2022, 02:41 PM
RE: Move Softbody to position - by Cysar - 21-04-2022, 02:51 PM