We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae68fe commit d0286c6Copy full SHA for d0286c6
examples/subclassing_simple_example.py
@@ -0,0 +1,17 @@
1
+from unreal_engine.classes import Character
2
+
3
+class Hero(Character):
4
5
+ def __init__(self):
6
+ self.CapsuleComponent.CapsuleRadius = 117
7
+ self.CapsuleComponent.CapsuleHalfHeight = 200
8
9
+ # BodyInstance is a USTRUCT (they are always passed as value)
10
+ body_instance = self.CapsuleComponent.BodyInstance
11
+ body_instance.CollisionProfileName = 'OverlapAll'
12
+ self.CapsuleComponent.BodyInstance = body_instance
13
14
+ self.CharacterMovement.GravityScale = 0.0
15
16
+ def OnActorBeginOverlap(self, other_actor):
17
+ print('overlapping with {0}'.format(other_actor))
0 commit comments