Jump to content

sticky particles orientation


Hoyt

Recommended Posts

I'm trying to create an "arrow system" based on particles.

 

but I have a problem...

 

when an arrow ( particle) hit the colliding surface it just "jumps" and aligns acording to the collision surface normals. it doesnt keep the "real" colliding angle.

 

here is the scene file that i'm currently working on.

 

hope someone can help me. 

 

Thanks a lot!

arrow_0.hip

Edited by Hoyt
Link to comment
Share on other sites

One way is when particle hit surface save its collide direction (may be N or v) relative to surface orientation, then, each frame, compute normal vector from the relative direction and current orientation.

 

Here the hip file. It's not perfect, it doesn't handle space transform so will work incorrectly if there is transformation at object level. Though, it should work with deforming object.    (Is there a way to transform quaternion between object space?)

 

Edit:  Just use transform vop to transform direction vector to collider's space. This should now accept object transformation

arrow_0_reorient.hipnc

Edited by PatW
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...