Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Collisoin
Topic Started: Mar 24 2009, 01:06 AM (1,188 Views)
Atarian
Advanced Member
[ *  *  * ]
considerng we are on the topic already, is it possible to get the position(s) that the cylinder is colliding with the other objects?
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
Wait can you reword that?
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
To do it right you need 3 ellipsoids: Posted Image
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY

Til'c
 
Things will not calm down Daniel Jackson. They will infact calm up.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Nahh.
Posted Image
Attached to this post:
Attachments: nah.png (4.01 KB)
Edited by skarik, Apr 12 2009, 04:10 AM.
Blog|EHS
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
I don't think that would work since source and dest are the same I dont think that would work.
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY

Til'c
 
Things will not calm down Daniel Jackson. They will infact calm up.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Why would you make source and dest the same? That's just stupid. Will never work if you have high velocities.
Blog|EHS
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
Ummm... You guys lost me when you stopped speaking English and started doing pic-talk....
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
skarik
Apr 12 2009, 08:47 PM
Why would you make source and dest the same? That's just stupid. Will never work if you have high velocities.
In your example you set the x and y source and dest to be the same
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY

Til'c
 
Things will not calm down Daniel Jackson. They will infact calm up.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
No I didn't. I designated the points Pa and Pb!

*hijack notice*
Blog|EHS
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
I feel ignored... Will someone please explain to me what everyone around me is talking about?
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Sorry had to hijack your topic.

For cylinders, do the following:

Code:
 
movement_vect = AttemptMoveToPosition(
-1,all,
x,y,z+character_height,
x+xspeed,y+yspeed,z+zspeed,
0,0,0,
character_width/2,character_width/2,
0.01,
all
);

// DO GET_VECTOR CALCULATIONS HERE TO GET YOUR NEW POSITION


You should be able to change the xspeed and yspeed with no problem. For zspeed, I recommend copying code from somebody else.

Posted Image
Blog|EHS
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
saijee
Apr 12 2009, 09:47 PM
Ummm... You guys lost me when you stopped speaking English and started doing pic-talk....
I agree. I only see a bunch of circles which I can't make anything out of.
Offline Profile Quote Post Goto Top
 
Reikyrr
Forum God
[ *  *  *  *  *  * ]
I get it,
do I get a plus point now?

By seeing all this I get more respect for my computer every day, seeing that if I need to render a small screen with very little presision (render I mean calculate and draw accordingly) I would be like 1fpd (frame(s) per day)
~Inspirational quote~
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
Despellanion
Apr 14 2009, 12:16 PM
saijee
Apr 12 2009, 09:47 PM
Ummm... You guys lost me when you stopped speaking English and started doing pic-talk....
I agree. I only see a bunch of circles which I can't make anything out of.
They're actually pizza's :P .

What do you get when you flatten a sphere? Right, a disc. So what you're seeing is a horizontal disc being moved from the head at one step, to the feet at the next step.
And the volume between both discs? Well if they were 2 pizza's stuck together with lots of cheese between them, pulling the lower one from the head to the feet would make the cheese stretch to form a skewed cylinder :D . Could lead to sticky situations :P .

Honestly though, poor Dr. Best was so excited about the swept elipsoid because it so faithfully mimics things like sliding down when you're on a slope etc., and now it seems that nobody wants that :lol: .

I really don't think there's a perfect solution to this problem, but maybe you can just check collisions with walls using a swept ellipsoid, and trace a single ray downwards to check the height above the floor. And when the falling velocity reaches a certain value, perhaps stop using the ellipsoid altogether? Just an idea.

roelor
 
By seeing all this I get more respect for my computer every day, seeing that if I need to render a small screen with very little presision (render I mean calculate and draw accordingly) I would be like 1fpd (frame(s) per day)
Yeah but on the other hand, the brain is still a far more powerful renderer than all those lazy modern PC's :D .
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
Quote:
 
the brain is still a far more powerful renderer


Reminds me of Amber Falls.
Blog|EHS
Offline Profile Quote Post Goto Top
 
Go to Next Page
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply