Can we do that in Python ? I tried, and it barfed:
TypeError: BulletWorld.attach_character() argument 1 must be BulletBaseCharacterControllerNode, not
MyCharacterControllerNode
I defined MyCharacterControllerNode like this:
from panda3d.bullet import BulletBaseCharacterControllerNode
class MyCharacterControllerNode(BulletBaseCharacterControllerNode):
def __init__(self, shape, step_height, name):
pass
So, it does absolutely nothing, but it IS inherited from the Base. Somehow, doesn’t work.
I tried to call BulletBaseCharacterControllerNode.init(self) in the init of my class, but it breaks, saying “Type Error: Can Not Init Constant Class”.
Never heard of a constant class before.