FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/subclassing_simple_example.py at master · SIRHAMY/UnrealEnginePython · GitHub
SIRHAMY
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
subclassing_simple_example.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 602 Bytes
Breadcrumbs
UnrealEnginePython
/
examples
/
subclassing_simple_example.py
Copy path
File metadata and controls
17 lines (12 loc) · 602 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from
unreal_engine
.
classes
import
Character
class
Hero
(
Character
):
def
__init__
(
self
):
self
.
CapsuleComponent
.
CapsuleRadius
=
117
self
.
CapsuleComponent
.
CapsuleHalfHeight
=
200
# BodyInstance is a USTRUCT (they are always passed as value)
body_instance
=
self
.
CapsuleComponent
.
BodyInstance
body_instance
.
CollisionProfileName
=
'OverlapAll'
self
.
CapsuleComponent
.
BodyInstance
=
body_instance
self
.
CharacterMovement
.
GravityScale
=
0.0
def
OnActorBeginOverlap
(
self
,
other_actor
):
print
(
'overlapping with {0}'
.
format
(
other_actor
))
Back
|
FazBrowse Home
|
New Git URL