Jump to content

Contoller and stairs


cassius
 Share

Recommended Posts

My player has difficulty climbing stairs. It gets half way up then stops. I have a cube in front of it. Whats the best way to give it more impetus?

 

Wait what? You're using a cube for the player collision data?

 

Unless. .. I mean if you've got a cube in the way, then one would guess that's why you can't get up the stairs.

 

Can you rephrase your question?

simpleSigPNG.png

Artist, Animator, Musician, P/T Programmer

Dual Core @ 2.6GHz per /nVidia 9600 GT/ 4 GBs DDR3 6800 / XP Pro 32/64 Bit

Photoshop CS3 / 3D Studio Max 8 / VS '08

Link to comment
Share on other sites

without the cube collision with objects did not look right, the controller seemed to pass thru them and although it did knock them over you could not see the collision clearly.The wiki tutorial uses a cube.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

what are you using for an acceleration value for the UpdateController command? That increases the acceleration of your controller (and inversely the deceleration). What is the mass you have set to your controller? A controller with a much higher mass than the object it collides with will react differently than when the two are closer in mass. Also, play around with the iterations value (the parameter after the acceleration parameter in UpdateController), because according to the wiki:

The iterations parameter controls how many times collision is calculated. Using several iterations can make motion appear smoother when a camera is attached to the controller. However, an iterations value of one is enough for controllers that do not control the view.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Thanks maclebee. I am using the listing you gave the community. I have added a cube (invisible) and parented to the controller. It works fine for collisions but need a bit more impetus going up stairs. I will check acceleration.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...