BulletHeightfieldShape
from panda3d.bullet import BulletHeightfieldShape
- class BulletHeightfieldShape
Bases:
Bases:
BulletShape
Inheritance diagram
- __init__(copy: BulletHeightfieldShape)
- __init__(image: panda3d.core.PNMImage, max_height: float, up: BulletUpAxis)
Stores the image’s brightness values in a vector Bullet can use, while rotating it 90 degrees to the right.
- __init__(tex: panda3d.core.Texture, max_height: float, up: BulletUpAxis)
Alternative constructor intended for use with
ShaderTerrainMesh
. This will do bilinear sampling at the corners of all texels. Also works with textures that are non-power-of-two and/or rectangular.
- static getClassType() panda3d.core.TypeHandle