Speed of falling Author Message
Babulesnik
Member

 Post: #1 Speed of falling I want to accelerate process of processing of physics. For fast falling of a cube I use kub_act.vel (10); But after that the flight trajectory changes. The cube starts to fly to the right. In what a problem? Still me one question very interests. How to learn what party the cube has fallen? Help please it very important for me.
12-29-2010 03:38 PM
Harry
Member

 Post: #2 RE: Speed of falling Actor velocity is a vector so I think that you should write kub_act.vel(Vec(0,-10,0) and it should add an actor velocity down. But I think that better choice is change gravity Physics.gravity(). Edit: This is only my quick idea, I'm not sure that it will be working. Maybe separate each cube face to one mesh part and theny create physics ray which if cube is on table check which mesh part is first on it's way. I don't know this is possible, but maybe it will help you to find better idea (This post was last modified: 12-29-2010 04:40 PM by Harry.)
12-29-2010 04:31 PM
Mardok
Member

 Post: #3 RE: Speed of falling Maybe try this: In Model Editor add 6 Points on every wall (Skeleton Mode)... In the name of every SkelPoint set number of points from the opposite wall. Next if your dice falls down and stop, check which of this 6 points is nearest to the table (example: cskel.getPoint("1").pos.y )... I think this can be done using only three Points...
12-30-2010 12:21 AM
Babulesnik
Member

 Post: #4 RE: Speed of falling (12-30-2010 12:21 AM)Mardok Wrote:  Maybe try this: In Model Editor add 6 Points on every wall (Skeleton Mode)... In the name of every SkelPoint set number of points from the opposite wall. Next if your dice falls down and stop, check which of this 6 points is nearest to the table (example: cskel.getPoint("1").pos.y )... I think this can be done using only three Points... Super idea. I will try.
12-30-2010 11:11 AM
 « Next Oldest | Next Newest »