Jump to content
Navneet Arora

Impact Data from Particular Object Id

Recommended Posts

Hello guys,

    How can i use impact data when an object hits a particular object in my case a ground plane to break the constraints, For eg - i have certain glued objects falling on the ground , some of them are breaking in the air while they release due to impact generated while i want they should only break once they collide with the ground plane else their strength should remain -1. So how could i extract object id of ground and use that as an impact data.

Share this post


Link to post
Share on other sites

In a sop solver, you get an impacts node. Each point in there depicts one impact in your sim. There's also data on that point which will tell you who collided with what. 

I don't remember the name of the point attribute that corresponds to who impacted with who, but it's there. I think it is called objid and otherobjid. I'd take a look but I'm not near my computer.

that should get you started. I can make an example hip for you later if it's still opaque. This stuff is a bit tricky and hidden.

Share this post


Link to post
Share on other sites
Just now, rich_lord said:

In a sop solver, you get an impacts node. Each point in there depicts one impact in your sim. There's also data on that point which will tell you who collided with what. 

I don't remember the name of the point attribute that corresponds to who impacted with who, but it's there. I think it is called objid and otherobjid. I'd take a look but I'm not near my computer.

that should get you started. I can make an example hip for you later if it's still opaque. This stuff is a bit tricky and hidden.

yes i found out, it is objid

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×