a floor
im at the point where i can load in a terrain and texture it and have a camera move around the world controlled by the wsad keys, i want the camera to be "walking" on the terrain though instead of just floating at a set height, i really have no idea how to go about this and i know someone else must have asked this before or there must be some sort of tutorial, any suggestions?
You just add a collision check and gravity.
Read up on SphearVSPolly collisions
some create tutorials at http://www.gametutorials.com
I even think they have added the collision part to some of their heighmaps tutorials, not gravity tho but thats easier then turning on the computer.
cheers.
fatal error C1004: unexpected end of file found
Read up on SphearVSPolly collisions
some create tutorials at http://www.gametutorials.com
I even think they have added the collision part to some of their heighmaps tutorials, not gravity tho but thats easier then turning on the computer.
cheers.
fatal error C1004: unexpected end of file found
Swedish: #Gamedev.se on EFNET
The easy way: every point in the map have a height. This value plus some constant it''s going to be equal to the cammera Z or Y or whatever axis value. The only catch of this method is that there can''t be two terrains, one above the other...
Hope it helps you... and sorry about my english.
Hope it helps you... and sorry about my english.
If there''s a hell, I''m sure this is how it''s smell.
it sounds simple in theory i just am having a problem implementing it, like i need a way to keep track of exactly what spot in the terrain i am over so that my "ground" height can be set to match that certain point, im not really interested in going crazy and making it more realistic like a FPS style where you slide down slopes or anything like that just a simple lock into place deal is good for right now but ill look into that collision tutorial.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement