Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddTorque?
#2
(31-07-2023, 05:24 PM)Renman3000 Wrote: If I have a softbody sphere, that I wanted to move by having it roll itself around, how would you code this?

I am currently using a rigidbody and obiRigidbody on the ball (in the example BallPool), and applying AddTorque() but there is no response. 

?

An object can’t be both a rigidbody and a softbody at the same time, that makes no sense whatsoever. The ObiRigidbody component only exists to let Obi know that an existing Unity rigidbody must be considered part of the simulation, it is automatically added to rigidbodies interacting with Obi actors so you should never add this component manually to an object.

Simply take your ObiSoftbody component and call AddTorque on it.

kind regards,
Reply


Messages In This Thread
AddTorque? - by Renman3000 - 31-07-2023, 05:24 PM
RE: AddTorque? - by josemendez - 31-07-2023, 06:39 PM
RE: AddTorque? - by Renman3000 - 31-07-2023, 07:16 PM
RE: AddTorque? - by Renman3000 - 31-07-2023, 08:47 PM
RE: AddTorque? - by josemendez - 01-08-2023, 06:47 AM
RE: AddTorque? - by Renman3000 - 01-08-2023, 04:57 PM
RE: AddTorque? - by josemendez - 02-08-2023, 06:40 AM