How can i place a set of eyes on a softbody cube

shomy2k11
Posts: 24
Joined: Thu Sep 08, 2011 1:59 am

How can i place a set of eyes on a softbody cube

Post by shomy2k11 »

I want to place a set of eyes on a softbody jello cube (boss). The eyes should rotate to the direction of the player. Any ideas ?
shomy2k11
Posts: 24
Joined: Thu Sep 08, 2011 1:59 am

Re: How can i place a set of eyes on a softbody cube

Post by shomy2k11 »

Wow,
I can't belive no one has an answer to this question. Help please
User avatar
dphil
Posts: 237
Joined: Tue Jun 29, 2010 10:27 pm

Re: How can i place a set of eyes on a softbody cube

Post by dphil »

Best way I know of would be to use Anchors between nodes of the soft body and two rigid bodies for the eyes (I'm assuming here that you want the eyes rigid). I have never used this, but I believe it is used in some of the demos(?)

Reference: http://bulletphysics.com/Bullet/BulletF ... nchor.html

Somewhat related post showing anchor creation: http://bulletphysics.org/Bullet/phpBB3/ ... hor#p21144

Search the forum for "soft body anchor", maybe there are more examples.
User avatar
Dr.Shepherd
Posts: 168
Joined: Tue Jan 04, 2011 11:47 pm

Re: How can i place a set of eyes on a softbody cube

Post by Dr.Shepherd »

This may be a silly question, and I did googled it.

But what do eyes mean here ?
User avatar
dphil
Posts: 237
Joined: Tue Jun 29, 2010 10:27 pm

Re: How can i place a set of eyes on a softbody cube

Post by dphil »

Not silly, good question. I had just assumed he wanted 2 rigid bodies (spheres, perhaps) for eyes, bobbling around on one of the sides of the jelly cube, since he mentioned having them rotate. Another idea would be simply having eye textures stuck onto the cube, but texturing soft bodies can be a bit tricky, and he'd also have to then figure out how to modify the texture to make the eyes "look" in certain directions.
User avatar
Dr.Shepherd
Posts: 168
Joined: Tue Jan 04, 2011 11:47 pm

Re: How can i place a set of eyes on a softbody cube

Post by Dr.Shepherd »

Ok, after reading your post and looking back previous ones, it makes sense now.

Cheers !