30-04-2019, 03:52 PM
I asked almost same question, but I could not get sign of when it is torn. I want an example to achieve.
Help Obi tearable cloth
|
30-04-2019, 03:52 PM
I asked almost same question, but I could not get sign of when it is torn. I want an example to achieve.
01-05-2019, 12:34 AM
(This post was last modified: 01-05-2019, 12:34 AM by josemendez.)
(30-04-2019, 03:52 PM)Richard Wrote: I asked almost same question, but I could not get sign of when it is torn. I want an example to achieve. Hi, You already asked this same question, and a complete example was provided. See: http://obi.virtualmethodstudio.com/forum...t=callback This is the sample code. Simply subscribe a function to the cloth's OnConstraintTorn callback. That's all there is to it: Code: using System.Collections;
01-05-2019, 01:37 AM
(01-05-2019, 12:34 AM)josemendez Wrote: Hi, How can I callback with that?
01-05-2019, 09:50 AM
(01-05-2019, 01:37 AM)Richard Wrote: How can I callback with that? This is a regular C# event. Please read on how to use them. https://www.tutorialspoint.com/csharp/csharp_events.htm https://www.tutorialsteacher.com/csharp/csharp-event (01-05-2019, 09:50 AM)josemendez Wrote: This is a regular C# event. Please read on how to use them. I used code like this Code: using System.Collections;
01-05-2019, 11:52 AM
(01-05-2019, 11:42 AM)Richard Wrote: I used code like this Maybe not disabling your component immediately in Start() would work
01-05-2019, 12:05 PM
|
« Next Oldest | Next Newest »
|