1 person found this helpful
mass and restitution are properties of rigidBody objects. You need to apply the #meshDeform modifier to the model, and then create a rigidBody for it, using a Physics member.
If you contact me off-list at james (at) openspark dot com, I'll be able to share some material with you for you to review.
Is the e mail address correct?
It works for me :-)
I've sent you a private message.
I've reply to your mail.
About to apply the "createRigidBody" to a model make with 3d max, imported like w3d in Director, and your hint. I think to unterstand how to apply "#meshDeform" modifier to the model but still I'm not be able to apply "createRigidBody"
l seen today all your vast and too much interesting tutorial, I have to much to learn about this exemple. Some of this I can understand some are too complex, I need more time to study, and I'm happy to do this now and in future.
I want to make you a kindly request. It's possible to have an orientation that concern my problem ("createRigidBody" from w3d) with a specific simple new exemple, if you have it, or tell me at wich tutorial I must to look better, I read all the tutorial but they are many, some too complex, and I hope (I'm a begginer) there is, for now, a short way to solve my problem.
Thank you very much again.
Thank you Openspark,
your kindness and knowlege make of you a special person!
The exemple is simple and I work with a similar tutorial that you send to me before, but I need to understend something, because my script was unsuccessful.
I try to explain better: If the box was made in 3dMax and imported in w3d format inside Director, how can I arrange the script maintaining the function of the sphere?
I think that I must arrange starting at the line 117 "on mCreateModels(me, a3DMember)" of the "Simple RigidBody Demo", but I don't know how sobstitute the script that create the model box with Lingo with another Lingo's script for a pre-existent model, or w3d model.
Many many thanks.
Try executing this line in your Message window
The on beginSprite() handler now contains these lines:
-- Create a rigidBody from a model imported with the W3D file
vName = "pSphere1" -- name of model created in 3dsMax
vModel = v3DMember.model(vName)
pBallRB = pPhysics.createRigidBody(vName, vName, #sphere, #dynamic)
pBallRB.restitution = 0.9
pBallRB.mass = 1.0
pBallRB.position = vector(0, 100, 0)
Does that help you to see what to do?
I was out of home, I came back I opened your
very kind help and YESSSSSSSSSSSSSSSS it works .
You should write a book, I tried but I found very little on the 3d in Director.
Now I run to develop my movie .................
I have no words to thank you.
Your last hint solve my problem and now my movie work well about this aspect.
Now I'm try to solve a second aspect of my low knowlege of Director and PhysX: the "collision".
I have look at your interesting exemple "Collide.dir" inside 25_movies. I learned too much but I know that, cause my low knowlege, I must spend much time to trasform the script and achieve my intent. So if this don't take much time and don't bored you
I post a massage as new discussion in 3d, and if you want (I hope) you can reply me there.
Thank you so much.