Orienting Collision Particles based on Collision Object

   1620   2   0
User Avatar
Member
42 posts
Joined: March 2019
Offline
Hi,

I saw this Question in the Forum and found it quite interesting.
https://www.sidefx.com/forum/topic/79618/ [www.sidefx.com]

I think the Question is formulated to briefly so I want to repost this Question in a bit more detail.

What I'm (he's) trying to do is to collide some particles with a rotation animated object and make them stick. On the collided particles I want the normal direction to match the velocity at the impact. After the impact I want the Normal direction to rotate along with the collision Geometry.



-How can I get the velocity of the previous frame, because then I could use this as the normal vector for the collided particles?
-How can I then rotate this vector along with the Collision Object?

example scene provided below

Greetings Lucca

Attachments:
Animation.gif (1.0 MB)
particle_collision_orientation.hipnc (328.2 KB)

User Avatar
Member
504 posts
Joined: July 2005
Offline
Hi,

here are some experiments with a solver (not popnet). The basic idea behind:

Get the first hit position (on target object) and the orientation matrix (at the first position) and also the impact orientation. Now make the point follow the same position (by prim / uv) and apply the new orientation matrix on it.

Attachments:
arrow_solver.hipnc (138.0 KB)

User Avatar
Member
42 posts
Joined: March 2019
Offline
Aizatulin
Hi,

here are some experiments with a solver (not popnet). The basic idea behind:

Get the first hit position (on target object) and the orientation matrix (at the first position) and also the impact orientation. Now make the point follow the same position (by prim / uv) and apply the new orientation matrix on it.

That's so awesome. Thanks man!
  • Quick Links