About Store Forum Documentation Contact



Post Reply 
Speed of falling
Author Message
Babulesnik Offline
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.

[Image: c105c9467dda.jpg]
12-29-2010 03:38 PM
Find all posts by this user Quote this message in a reply
Harry Offline
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 smile
(This post was last modified: 12-29-2010 04:40 PM by Harry.)
12-29-2010 04:31 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Mardok Offline
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 )...

[Image: kostkav.jpg]

I think this can be done using only three Points...
12-30-2010 12:21 AM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
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 )...

[Image: kostkav.jpg]

I think this can be done using only three Points...

Super idea. I will try.
12-30-2010 11:11 AM
Find all posts by this user Quote this message in a reply
Post Reply