CharacterBody3D¶
from acron.character_body import CharacterBody3D
- class CharacterBody3D(physics_world, radius=0.5, height=1.0, name='CharacterBody3D', snap_extra_reach=0.35, collide_mask=None, body_mask=0000 0000 0000 0000 0000 0000 0000 0010, max_slides=6, floor_max_angle_deg=45.0, floor_snap_length=0.1, seam_snap_distance=0.0, gravity=LVector3f(0, 0, -9.8))¶
Bases:
objectGodot’s kinematic character mover.
radius/heightare the Bullet capsule dims (heightis the cylinder part only – Godot’s defaultCapsuleShape3Dr 0.5 / full height 2.0 isradius=0.5, height=1.0here). Read the real dims from the character’s.tscn; don’t invent them. NB Godot’sCharacterBody3Dorigin is at the FEET while aBulletCapsuleShapeis centred on the node – lift the spawn by the capsule half-height and drop the visual model by it.body_maskis the Godot layer the presence body lives on (what others hit when they shoot/ray at this character);collide_maskis what the movement sweep collides against (walls/floors – typically NOT other characters).Inheritance diagram
digraph inheritance0f979baebb { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CharacterBody3D" [URL="acron.character_body.CharacterBody3D.html#acron.character_body.CharacterBody3D",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Godot's kinematic character mover."]; }