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
Third Person example question
Topic Started: Jun 18 2006, 10:07 PM (370 Views)
D
Unregistered

i have replaced the roomm model with a terrain... and i was wondering ... how can i make it so my character can walk up taller slopes... like it can go up hills very small ones fine.. but it cannot go up a little taller ones. and when u jump onto them u slide backward like the hilll is slippery like ice or whatever :( how do i fix:( so the character doesnt slide or whatever or what not...

To help refer to the 3rd person example under the Character object under step event im guessing... because that is where its collision control is with the floor.. idk just let me know!!

THaNKu! :cow:
Quote Post Goto Top
 
Oblivion
Advanced Member
[ *  *  * ]
you could compare the z of the character with the z of the hill a few steps ahead, and if the difference is too great, then stop chracter moving,

dont know bout ice problem tho
Offline Profile Quote Post Goto Top
 
D
Unregistered

Like how can i compare it? Code? what how? lol wha wha??

look @ the 3rd person example...


yah .... idk what do i change to make it less sensative to what i can walk over?
Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
D
Jun 19 2006, 02:37 AM



yah .... idk what do i change to make it less sensative to what i can walk over?

this:
Code:
 
// Position the character on the floor or let him fall
floor_z=GetHeightAtPos(x,y,z);
if(floor_z!=100000){
   if(z-27<floor_z)
   if(z-10>floor_z)
   if(fall_speed>=0){
       z=23.7+floor_z;
       jump=false;
       fall_speed=false;}
   if(z-10<floor_z){
Offline Profile Quote Post Goto Top
 
"D"
Unregistered

thats freaking tricky.. i cant get it walking good now.. but iput it back to normal.. and it works okay.. but wtf?! lol
Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
"D"
Jun 20 2006, 06:52 PM
thats freaking tricky.. i cant get it walking good now.. but iput it back to normal.. and it works okay.. but wtf?! lol

You have to change those constants so it fits to your model.
Code:
 
// Position the character on the floor or let him fall
floor_z=GetHeightAtPos(x,y,z);
if(floor_z!=100000){
  if(z-27<floor_z) //Change this
  if(z-10>floor_z) //Change this
  if(fall_speed>=0){
      z=23.7+floor_z; //Change this
      jump=false;
      fall_speed=false;}
  if(z-10<floor_z){ //Change this
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply