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,186 Views)
saijee
Elite Member
[ *  *  *  * ]
Well of course nobody want's it, because that does not happen in professional games, your either falling or not. If your on the edge of a floor, your not going to slide down, your going to stay not falling until your no longer on the edge.

....

Anyway... A lot of you guys are saying stuff like "I'm not sure there is a definite way"... Then are you guys giving me these methods before trying them out, and just thinking of things that work in your mind?
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
I try before give. I use my way currently.
Blog|EHS
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
Ok, so let me get this strait, in your thing, the top of the cylinder is lagging behind the base of it? Also, what was the issue with Z?
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
Skarik - I tried your code and it does not work.

The camera bounces in extremely ridiculous ways (for example, collision with a wall will send the camera backward 100 feet, etc.) Here is the code I used (Camera Step Event):

Code:
 
xP=x; yP=y; zP=z;

if (keyboard_check(keyMovement_forward))
{
Move(rotx,roty,2*player_factorSpeed);
}
if (keyboard_check(keyMovement_left))
{
Move(0,roty-90,1.5*player_factorSpeed);
}
if (keyboard_check(keyMovement_right))
{
Move(0,roty+90,1.5*player_factorSpeed);
}
if (keyboard_check(keyMovement_backward))
{
Move(-rotx,-roty,1*player_factorSpeed);
}

ellipsoid_detect=AttemptMoveToPosition(-1,worldHULL,x,y,z+height,x+(x-xP),y+(y-yP),z+(z-zP),0,0,0,width,width,0.01,-1);
x=GetVector(ellipsoid_detect,1);
y=GetVector(ellipsoid_detect,2);
z=GetVector(ellipsoid_detect,3);

MoveCamera();

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
 
saijee
Elite Member
[ *  *  *  * ]
So the code that you just posted does NOT work?
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
saijee
Apr 17 2009, 10:26 PM
So the code that you just posted does NOT work?
Yes it doesn't 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
[ *  *  *  *  *  * ]
Duh. I'll let you figure it out.

Nah, j/k. What you're doing is moving from x,y,z and going to 2x-xP,2y-yP,2z-zP.

Now if that doesn't work, you have permission to shoot me. As I said, I copied all this from the collision example.

Try this:
ellipsoid_detect=AttemptMoveToPosition(-1,worldHULL,xP,yP,zP,x,y,z+height,0,0,0,width,width,0.01,-1);


Blog|EHS
Offline Profile Quote Post Goto Top
 
Eansis
Member Avatar
ghost
[ *  *  *  *  *  * ]
skarik
Apr 18 2009, 04:06 AM
Duh. I'll let you figure it out.

Nah, j/k. What you're doing is moving from x,y,z and going to 2x-xP,2y-yP,2z-zP.

Now if that doesn't work, you have permission to shoot me. As I said, I copied all this from the collision example.

Try this:
ellipsoid_detect=AttemptMoveToPosition(-1,worldHULL,xP,yP,zP,x,y,z+height,0,0,0,width,width,0.01,-1);


Consider yourself executed :P

The first thing I tried is xP,yP,zP,x,y,z+height and that does not work. It shouldn't matter though since the actual x and y position of the camera matters not.
Edited by Eansis, Apr 18 2009, 06:15 PM.
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
[ *  *  *  *  *  * ]
Eh, I'll post an example tonight then.
Blog|EHS
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
Sorry, I been away for a long time, anyway, cool, I look forward to this.
Offline Profile Quote Post Goto Top
 
skarik
Member Avatar
kitten eating scum
[ *  *  *  *  *  * ]
skarik
Apr 18 2009, 09:58 PM
Eh, I'll post an example tonight then.
Woah I forgot. I'll aim for one this weekend, then.

It actually tried doing the collision technique I supplied already, but it has some major flaws that I'd rather not draw out. I managed to use the same code in Stickman without any problems, however, which is confusing the hell out of me. So, yeah, weekend definitely. PM me or email me if I forget.
Blog|EHS
Offline Profile Quote Post Goto Top
 
Reikyrr
Forum God
[ *  *  *  *  *  * ]
MysteriXYZ
Apr 14 2009, 09:54 PM
Yeah but on the other hand, the brain is still a far more powerful renderer than all those lazy modern PC's :D .
Nah it isnt, it just does it in a different way.
Oh oops, Im responding to a post on the first page :lol: .

I'm quite bored..
Edited by Reikyrr, May 5 2009, 11:10 AM.
~Inspirational quote~
Offline Profile Quote Post Goto Top
 
saijee
Elite Member
[ *  *  *  * ]
Say would either of these work?


Posted Imagehttp://i44.tinypic.com/w7y1w2.png
Posted Imagehttp://i42.tinypic.com/35jwao2.jpg
Offline Profile Quote Post Goto Top
 
ZetaBoards - Free Forum Hosting
Fully Featured & Customizable Free Forums
Learn More · Sign-up Now
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply