Hello,
I'm having a weird issue where I have just some particle colliding with a ground node, move to hit, and response to "stop" and "move to hit" checked on. However, when I use the pop awaken the "stopped" attribute goes back to 0, but none of the forces affect it. but the Velocities are updated in the geometry spreadsheet. not sure why that is. any ideas why?
does pop awaken work when collision response is to set to "s
1968 5 1-
- Angel Negron
- Member
- 33 posts
- Joined: Oct. 2014
- Offline
-
- Angel Negron
- Member
- 33 posts
- Joined: Oct. 2014
- Offline
-
- tamte
- Member
- 9133 posts
- Joined: July 2007
- Offline
particles are detecting collisions before the position is integrated
and if the collision was detected they will be moved to collision after the integration, essentially keeping them stuck
- you can either use @hittotal to move to collisions only once yourself
- or move them to collisions with slight gap between the collision detection radius and the collider, so that they are not inside collision when awaken
here is a file with both options
and if the collision was detected they will be moved to collision after the integration, essentially keeping them stuck
- you can either use @hittotal to move to collisions only once yourself
- or move them to collisions with slight gap between the collision detection radius and the collider, so that they are not inside collision when awaken
here is a file with both options
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Angel Negron
- Member
- 33 posts
- Joined: Oct. 2014
- Offline
thank you Tamte, this was a huge help. Love it!!!!
I don't quite get this expression, haspointattrib(0, "pscale") ? 0 : 0.02;
I know its checking if the point has the attribute but the
? 0 : 0.02;
I never used ternary conditional before so if I understand it let me know, looking at the documents ternary conditional is checking if the condition is true or false, and if it is true it takes in the left or false takes the value on the right?
so, in essence, it checks if it has an attribute called pscale from the first context input if it does meaning true it gets the value on the left of the colons(0), and if it's false it gets the value on the right side of the colon(0.02).
thank you again.
I don't quite get this expression, haspointattrib(0, "pscale") ? 0 : 0.02;
I know its checking if the point has the attribute but the
? 0 : 0.02;
I never used ternary conditional before so if I understand it let me know, looking at the documents ternary conditional is checking if the condition is true or false, and if it is true it takes in the left or false takes the value on the right?
so, in essence, it checks if it has an attribute called pscale from the first context input if it does meaning true it gets the value on the left of the colons(0), and if it's false it gets the value on the right side of the colon(0.02).
thank you again.
-
- tamte
- Member
- 9133 posts
- Joined: July 2007
- Offline
That's right
The reason is that the solver uses 0,02 radius if there is no pscale to help avoid leaks, but the hitpos is exactly at the surface
And if there is pscale it uses that but also hitpos is offset from surface by pscale
So in the wrangle I'm just accounting for the difference to apply gap
Therefore if there is pscale I offset just by the offset value
If not, then it needs to be offset by 0.02 and the offset value
Simply to always end up a tiny bit further than the collision detection is checking for
The reason is that the solver uses 0,02 radius if there is no pscale to help avoid leaks, but the hitpos is exactly at the surface
And if there is pscale it uses that but also hitpos is offset from surface by pscale
So in the wrangle I'm just accounting for the difference to apply gap
Therefore if there is pscale I offset just by the offset value
If not, then it needs to be offset by 0.02 and the offset value
Simply to always end up a tiny bit further than the collision detection is checking for
Edited by tamte - June 16, 2022 16:03:40
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- Angel Negron
- Member
- 33 posts
- Joined: Oct. 2014
- Offline
-
- Quick Links