tyFlow Forum
PhysX Binds and PhysX in Script - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html)
+--- Thread: PhysX Binds and PhysX in Script (/thread-5126.html)



PhysX Binds and PhysX in Script - rjanders0003 - 03-23-2026

G'Day Tyson

I was writing some code in the script operator and playing around, I didn't realize the the tfbind class doesn't work on PhysX binds, they seem to return null values, but work on the std bind operator.  If I am wrong on this, let me know how to correct.

would it be possible to add some PhysX specific bind query information or is this not possible eg: hypothetical examples below, they would add a lot of power to scripting with PhysX:

Code:
// Get list of PhysX bind partners for a particle
List<int> tf.GetPhysXBinds(int simIndex);

// Get rest length of a specific PhysX bind
float tf.GetPhysXBindRestLength(int simIndex1, int simIndex2);

// Get current length (for strain analysis)
float tf.GetPhysXBindCurrentLength(int simIndex1, int simIndex2);

// Break a specific PhysX bind
void tf.BreakPhysXBind(int simIndex1, int simIndex2);
 
Just a Thought !!
Rob


RE: PhysX Binds and PhysX in Script - tyFlow - 03-24-2026

That's correct - no PhysX bind related stuff is exposed in the Script operator.


RE: PhysX Binds and PhysX in Script - rjanders0003 - 03-24-2026

(03-24-2026, 01:50 PM)tyFlow Wrote: That's correct - no PhysX bind related stuff is exposed in the Script operator.

Are you interested in adding any access, it would have benefits for coders, but I don't know if it is easily feasible, at least bind length information would be super usefull.

Rob


RE: PhysX Binds and PhysX in Script - tyFlow - 03-24-2026

Perhaps at some point...although PhysX binds are more complicated to handle than particle binds, so it may have limited use.


RE: PhysX Binds and PhysX in Script - rjanders0003 - 03-24-2026

(03-24-2026, 05:56 PM)tyFlow Wrote: Perhaps at some point...although PhysX binds are more complicated to handle than particle binds, so it may have limited use.

Thanks Mate,

I did realize it would be more complicated, and I think the more useful options would to be get bind length and maybe break, the reason I am asking with such interest, is I created a pretty cool method for clustering, but to make it bullet proof on neighbors and particle separation ie: gaps between clustered particles, access to length would give the ability to ensure clusters are true neighbors (touching).  If I wasn't afraid to ask, I would almost think my clustering idea would be a great addition to tyFlow as a built in option without the need for a custom script.

Rob