Jump to content

Weird Terrain


MrIslomaniac
 Share

Recommended Posts

Hi JGuys

Here is the thing:

I am trying to elevate the terrain at any x and y coordinates with this code:

for(int i = x+256;i<x+256+5; i++){
    for(int o = y+256;o<y+256+5; o++){
SetTerrainHeight(Terrain, o, i, TerrainHeight(Terrain,o,i)+0.001 );
    }
}

the +256 is because the terrain 0,0 is at -256,-256

The terrain raises in physics, but does not raise in visual(but somewhere else)

Here is a pic:

http://img202.imageshack.us/img202/1366/weirdh.jpg

I hope you can help me...

I would even say that there is a mistake in Josh's code ...

When I move on the Z Achsis and i get physics on Z achsis, but the visual on X- achsis ...

 

Posted it in the Bug Tracker: http://leadwerks.com/werkspace/index.php?/tracker/issue-66-small-axis-mistake/

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...