Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about softbody Collision
#6
(11-03-2021, 12:58 PM)zero16832 Wrote: I make a ground and a control softbody in scene . when the sofybody collision with the ground,this first collision

It’s not entirely clear to me, sorry. First collision since when? in the game? since last time the ground and the softbody where in contact? First particle that contacts the ground? First contact reported in the list of contacts for a single frame?

An object might collide with another during a single frame, or multiple frames.
You can get all contacts for the current frame using the collision callbacks API, see the link above. You can simply subscribe to the OnCollision event and grab the first contact in the list, if that’s what you are after.
Reply


Messages In This Thread
about softbody Collision - by zero16832 - 11-03-2021, 12:33 PM
RE: about softbody Collision - by josemendez - 11-03-2021, 12:40 PM
RE: about softbody Collision - by zero16832 - 11-03-2021, 12:48 PM
RE: about softbody Collision - by josemendez - 11-03-2021, 12:54 PM
RE: about softbody Collision - by zero16832 - 11-03-2021, 12:58 PM
RE: about softbody Collision - by josemendez - 11-03-2021, 02:53 PM
RE: about softbody Collision - by drmgmt32 - 20-02-2022, 05:07 AM
RE: about softbody Collision - by josemendez - 21-02-2022, 08:29 AM