how to spin Debris according to velocity?

   5597   5   1
User Avatar
Member
14 posts
Joined: May 2016
Offline
Hello,

is there any simple way to make debris to spin according to velocity?

Regards
Deb

Attachments:
DebriesSystem.hip (536.4 KB)

Debadas Mohanty
User Avatar
Member
14 posts
Joined: May 2016
Offline
Any help??? or there is no solution??
Debadas Mohanty
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
Hello Debadas.
I looked at your HIP file and fixed that.
Attaching linear velocity to angular velocity isn't great idea because when particles hit the ground and bounce it off, direction of linear velocity vector becomes upside down hence direction of spin will change and result won't be good at all (I did it in this HIP file).
In Attached HIP file I explain where you can write expression.
hope this helps.
Edited by Nima - Dec. 19, 2016 14:57:46

Attachments:
DebriesSystem FIXED.hip (554.0 KB)

User Avatar
Member
14 posts
Joined: May 2016
Offline
Hello Nima,

Thanks for the reply and the hip file. But this not what I was looking for exactly. Its not looking natural because debris are not rotating according to velocity.

Every piece of debri is moving with different speed and direction so those has to inherit that value and should rotate accordingly with different speed and stop when velocity is Zero, which is not happening in your file.

May be i am missing something here. So please let me know if we can control derbies fully and look natural.

Regards
Deb
Debadas Mohanty
User Avatar
Member
471 posts
Joined: Nov. 2013
Offline
Simply you can write something like this in popspin1 node:
axis = set(random(@id), random(@id), random(@id));
spinspeed = 250 * length(@v);
if(length(@v) <= 0.1 && @P.y <= 0.05)
spinspeed = 0;
You can play with it and write whatever you like in that area.
Edited by Nima - Dec. 22, 2016 04:27:42
User Avatar
Member
14 posts
Joined: May 2016
Offline
Thanks Nima,

Its working perfectly..thank you so much..
Debadas Mohanty
  • Quick Links