My question is about two parameters of NewtonCreateHeightFieldCollision:
* gridsDiagonals - what is this? if it is 1, then Newton will use triangles instead of quads?
* attributes - I can guess that with this we are able to set some attributes of the individual quads of the height field like material or something like this
Unfortunately I've seen only one usage of this function in the height field demo and these are all 0s so I am unable to figure out it's use.
Btw in the height field demo contains a minor code error:
- Code: Select all
attibutes = (char*) malloc (width * width * sizeof (char));
Shouldn't be this like the following?
- Code: Select all
attibutes = (char*) malloc (width * height * sizeof (char));
I've already uploaded some stuff about height field collisions to the Wiki, like putting it to the list of collision types and filling the function API entry of NewtonCreateHeightFieldCollision, but I would need the meaning of these parameters as well.
P.S.: Are height field collisions movable? If not it would be nice to have a bias factor as well.