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 GDK / Why Player is Above the map

Author
Message
Sana_Sajjad
12
Years of Service
User Offline
Joined: 9th Jul 2012
Location:
Posted: 13th Jul 2012 21:37
Hi all, i am using Sparky's Collisions in my game...everything is going well but my player is still at some height above the road... can anyone tell me how can I make my player to stick to the road???
i tried to reduce the radius in the sphereCasting... but nothing happen..
Thanks All
=========
Sana Sajjad

=============================================================
G!rLz CaN C0d3 GaM3s....!!!!
=============================================================
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 14th Jul 2012 00:14
Sparky's is great for simple games without complex physics. What I normally do is not set automatic collisions on my character. Instead, just read the collision info yourself and adjust the height manually.

The fastest code is the code never written.
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 14th Jul 2012 00:18
You are probably going to need to re-centre your object so 0,0,0 is not at the bottom of the character.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Sana_Sajjad
12
Years of Service
User Offline
Joined: 9th Jul 2012
Location:
Posted: 14th Jul 2012 10:02
you mean I have to reset my character at 0,0,0 in 3ds max? am I right? character's pivot at 0,0,0 or character feets?
thanks

=============================================================
G!rLz CaN C0d3 GaM3s....!!!!
=============================================================
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 14th Jul 2012 15:31
You can show the bounds using Sparky's (SC_drawObjectBounds). Use this and it should give you an idea of what you should do.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-11-19 00:37:52
Your offset time is: 2024-11-19 00:37:52