Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Makeing reactive grass

Author
Message
Hacktank
16
Years of Service
User Offline
Joined: 25th Apr 2008
Location: Behind You
Posted: 27th Jun 2009 09:11
I am trying to make reactive grass that bends when a rigid body touches it using joints, I have the joints and grass objects made but i cannot get them to spring back to an upright position. I try to use the spring paramater on sphere and 6dof joints but i cant get them to do anything atall. How would i do this? ( NVIDIA SDK example attached)

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jun 2009 12:22 Edited at: 27th Jun 2009 12:28
If you are using joints then you need to change how the value is worked out.

Putting a number like 1 or 50 will not work, try something like this.


Also I think that will on this command


Are you doing this in basic or GDK?

this what to look for to work out how to use the command set
Quote: "Twist and Swing Decomposition in Quaternion Components"


Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jun 2009 13:51
Are you getting anything like this?




Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jun 2009 14:50
Here is something more like the demo using sphere joints which I was not using before.



Dark Physics makes any hot drink go cold.
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 27th Jun 2009 17:21
Do you think soft bodies would be a better way to accomplish this?



Diggsey: I have a spine and memory, but one memorable guy says he hates me. What am I?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Jun 2009 22:39 Edited at: 27th Jun 2009 22:52
@BMacZero
Might be, if the program for doing softbodys would work.

Dark Physics makes any hot drink go cold.
Oolite
19
Years of Service
User Offline
Joined: 28th Sep 2005
Location: Middle of the West
Posted: 27th Jun 2009 22:47
I reckon soft bodies might be too slow just for grass.
I wouldn't recommend doing it through DP, just have the plain rotate away when the rigid body is near the object. Probably be quicker and as long as the pivot point is at the bottom of the object then it should work okay.

Hacktank
16
Years of Service
User Offline
Joined: 25th Apr 2008
Location: Behind You
Posted: 28th Jun 2009 02:43
Thanks guys, the problem is solved with howdo's third post, and later i will try useing a soft body and see how it goes.

Login to post a reply

Server time is: 2024-11-24 17:08:13
Your offset time is: 2024-11-24 17:08:13