Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / How do I get floor collision?

Author
Message
Cruise McClarren
18
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 8th Nov 2011 16:52 Edited at: 9th Nov 2011 15:49
when I run the following program my object and camera just fall right through the floor. How do I keep my 'player' inside the map and not fall through the floor?


below is the required media... any insight would be helpful

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003

Attachments

Login to view attachments
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 9th Nov 2011 17:18
think this might be the line that making the problem.



try this one at the above line position.



Dark Physics makes any hot drink go cold.
Cruise McClarren
18
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 10th Nov 2011 00:50
I tried that change but it is still doing the same thing. Did it work for you?

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Nov 2011 09:09
ok hand up, did not run your code, just looked at it, so it no suprize that it did not work as hoped.

will now do the right way.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 10th Nov 2011 09:20 Edited at: 10th Nov 2011 09:31
well not as hard as I thought.

first camera line made it 70instead of 60.



hint: if you start falling though floors or flying off into the distance it means you've started off in the object.

edit,

68 would be the best number to start with, when it stops falling, it has a y position of 67.8 when using this line to see where it landed.



put the above line in the do loop.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-04-20 12:36:40
Your offset time is: 2024-04-20 12:36:40