Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FirstPersonLauncher with Softbody itself
#2
(18-12-2020, 11:59 AM)nbac85 Wrote: Hey i would like to shoot some softbodies.
so i want to do a mix between the actor spawner and the fps launcher.
the softbody does not have a rigidbody so how do apply initial velocity to the particles?
i did pose the whales with obi
and now i need to shoot crabs.
https://vimeo.com/492231983

Same way as you'd do with a rigidbody:

Quote:softbody.AddForce(velocity,ForceMode.VelocityChange);

See:
https://docs.unity3d.com/ScriptReference...Force.html
https://docs.unity3d.com/ScriptReference...hange.html

Only difference between rigidbodies and softbodies is that rigidbodies have a single linear velocity (measured at its center of mass), while softbodies have multiple velocities (one per particle). But you can use AddForce() the same way with both.
Reply


Messages In This Thread
RE: FirstPersonLauncher with Softbody itself - by josemendez - 18-12-2020, 12:09 PM