Skip to main content

Extensive character control system to be used with the Panda3D engine

Project description

Panda3D Character Controller

An extensive character controller system to be used with the Panda3D engine

Features

  • Walking/Running
  • Sprinting
  • Jumping
  • Climbing
  • Wall run
  • Ledge grab
  • player stamina handling
  • P3D integrated physics
  • first person camera system
  • third person camera system
  • JSON configuration file

Install

Install the character controller via pip

pip install panda3d-character-controller

How to use

Using the character controller itself is quite easy, simply instantiate it and call the startPlayer function. You can set it's start position and rotation using the setStartPos and setStartHpr functions.

base.cTrav = CollisionTraverser("base collision traverser")
base.cTrav.setRespectPrevTransform(True)

# actual character setup
player = PlayerController(base.cTrav, "path/to/config.json")
# start the player
player.startPlayer()

Config

Configuration of the player is done in a json file that has to be passed to the controllers constructor. Simply copy and tweak the config file which can be found in the data folder. For further information see the PDF documentation.

PDF Documentation

An extensive documentation about the character controller can be found in the doc Folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panda3d-character-controller-20.11.1.tar.gz (55.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page