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.

Newcomers DBPro Corner / fall down steep hill mesh?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 29th Mar 2011 18:53
can anyone tell me how 2 code my player 2 fall down a steep slope??? i have the code for falling & tumbling i just dont know how 2 detect the slope. im using dark physics also

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 29th Mar 2011 22:38
If you are using DarkPhysics then I assume you are asking how to make a 'rag-doll'?

If that is the case then this is a very complicated question to answer. Maybe you should ask on the DarkPhysics forum here:
Dark Physics Forum

Otherwise perhaps you could give some example code and we could try to point you in the right direction?

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 30th Mar 2011 16:09
wow i thought what i was asking was verry clear! i need 2 detect the slope(angle of the mesh) under my player.

im not looking 2 make a ragdoll.

i assume no one has any idea. i really should stop coming here!
this forum is no help!
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 31st Mar 2011 19:00
Quote: "wow i thought what i was asking was verry clear"

I was just confused by what exactly you were after an answer to:

Quote: "how 2 code my player 2 fall down a steep slope?"


or...

Quote: "how 2 detect the slope"


Also I wasn't sure why you mentioned DarkPhysics.

I'm not being awkward or trying to annoy you just trying to help

Quote: "i need 2 detect the slope(angle of the mesh) under my player"

Although DarkPhysics does do some collision detection I would suggest using sparky's collision too. DP raycasting is bugged.

1-Setup the mesh as a complex object using the sparky's command "sc_setupcomplexobject"
2-Do a raycast from your player position directly down to well below where your mesh ends
3-Use "sc_getcollisionnormalx()" and "sc_getcollisionnormaly()" and "sc_getcollisionnormalz()" to get a 3D unit vector for the 'normal' angle (90 degrees to the slope)

At least that's how I'd do it...

Quote: "i assume no one has any idea. i really should stop coming here!
this forum is no help!"

I'd suggest:
1-try to be clear with your questions
2-try to be patient and polite with the answers

Otherwise you'll just annoy people who actually want to help and are capable of doing it.

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 31st Mar 2011 20:29
thanks 4 the help! ill try that
didnt mean 2 be rude im just frustrated with never getting any help around here.

peace
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 31st Mar 2011 20:38
No worries, I know how frustrating that can be.

Just ask any time I'll always try to help (not always successful but I'll try)

If you get stuck with my suggestion let me know.

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 1st Apr 2011 02:41
Quote: "im just frustrated with never getting any help around here."


That's a bit of hooey. I looked at your profile and you have made over 100 threads and all but two got responses (and those were DP I think).

I tried to help you here:
http://forum.thegamecreators.com/?m=forum_view&t=182349&b=7and you didn't even have the decency to respond to my suggestion.

With you saying stuff like this, in effect dissing everyone who has tried to help you, why, I ask you, would they want to help you now? Maybe you are young (I don't want to know), but regardless, you are acting like you are very young. You should be grateful for the help you have received. I can tell you that it is frustrating to take the time and effort to help others, and they either never show up again or don't acknowledge the effort. So please, consider what you say.

Poloflece
14
Years of Service
User Offline
Joined: 14th May 2010
Location: Australia
Posted: 2nd Apr 2011 10:31
Quote: " im just frustrated with never getting any help around here."


we ar enot a support desk, we are just members like you.

Fps creator has recently introduced per polygon collision. If your terrain is a mesh file and not a heightmap it may be possible to make an event occur when you are on or within the radius of a polygon.


Rust Pack WIP here http://forum.thegamecreators.com/?m=forum_view&t=178788&b=24
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 2nd Apr 2011 22:44
Quote: "i assume no one has any idea. i really should stop coming here!
this forum is no help!"


Is not worth insulting and then say peace. Surely you behave the same way in all the forums where you make questions. Next time you ask questions, remember the two magic words please and thankyou Sorry to the other fellow, if my comments are somewhat harsh.

Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-11-22 23:01:43
Your offset time is: 2024-11-22 23:01:43