# Ninja Character - Dynamic gravity for characters & objects

**URL:** <https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744>\
**Category:** UE Marketplace\
**Tags:** unreal-engine, fab\
**Created:** [October 6, 2020, 7:10pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744 "2020-10-06T19:10:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 6, 2020, 7:10pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/1 "2020-10-06T19:10:29Z")

</div>

**The plugin won’t be updated for Unreal Engine 5.5 or later** _(use Epic’s CharacterMovementComponent with custom gravity, or use Epic’s Mover 2.0 plugin)_

…

_**[Free on the Marketplace](https://www.unrealengine.com/marketplace/en-US/product/ninja-character-plugin)  
Supported by the Epic MegaGrants Program!**_

I present you a Code Plugin for UE4, inspired by Epic’s ArchVisCharacter. Contains six C++ classes, and an example map with blueprints. This plugin provides a Character, a third-person camera, a PhysicsVolume, and a Projectile that support any gravity direction determined by ten different modes.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/e/76e7013a2b389993beb2bdb4f928ac80874d5131.jpeg "UE4 Ninja Character Plugin Trailer") ](https://www.youtube.com/watch?v=RrnAEdkGK9E)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/5/2c52f9a755977dc0cb7b4e7d2e97403ac560eec3.jpeg "UE4 Ninja Character Plugin Walkthrough") ](https://www.youtube.com/watch?v=ObzTES2Ugbs)

This project started ([2014](https://forums.unrealengine.com/development-discussion/engine-source-github/28191)) as a CharacterMovementComponent subclass with support for arbitrary orientations. After Epic’s explicit interest on integrating this in the base engine, it evolved in a series of GitHub pull requests that improved the base CharacterMovementComponent, but never got any gravity-related improvements in.  
This plugin completely supersedes other plugins that use my outdated and unpolished code that I shared with everyone for older versions of Unreal Engine.  
Unsupported features include AI with navigation mesh based walking, and cloth geometry simulation.  
Only the last version of Unreal Engine receives plugin updates.

**Features:**

- Character with support for any orientation and gravity direction.
- PlayerCameraManager that handles any arbitrary Character orientation.
- PhysicsVolume that overrides gravity direction for overlapping Actors.
- Projectile that follows gravity direction.
- 10 modes that determine direction of gravity, zero gravity supported too.
- Additional cheats to draw debug info.

 ![01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/b/1b73a74fe8b9d9219314d86e946758ba7c5a49db.jpeg)

 ![04.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f5515871d360829c176ac2f94dea56015919bf26.jpeg)

 ![05.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/a/4ae5467ce7395e96f0a4b307079d21e9da80a8c6.jpeg)

**How to use:**

- Make sure you already have created a game project.
- Player controls are only handled by the example Character Blueprint, and require input bindings.
- Open the example level to learn how to use the new classes added by the plugin.

1. Install the plugin to the engine.  
a. Open Epic Games launcher  
b. Click on “Unreal Engine” section  
c. Click on “Library” tab  
d. Under “Vault” sub-section, search for “Ninja Character Plugin”  
e. Click “Install to Engine”  
f. Choose engine version and wait for installation

2. Enable the plugin in your game project.  
a. Open project with editor  
b. Edit \> Plugins  
c. Search for “Ninja Character”  
d. Mark “Enabled” checkbox  
e. Restart editor

3. In Content Browser, mark “Show Engine Content” and “Show Plugin Content” checkboxes in “View Options”

4. Add new input bindings (optional).  
a. Outside the editor, go to your project’s root folder  
b. Open “Config” folder  
c. Backup “DefaultInput.ini” file (if it exists)  
d. In the editor, Edit \> Project Settings  
e. Click on “Input” section below big “Engine” word  
f. Under “Bindings” sub-section:

- Add “Jump” to “Action Mappings”, assign a key/button
- Add “MoveForward” to “Axis Mappings”, assign keys or joystick axis
- Add “MoveRight” to “Axis Mappings”, assign keys or joystick axis
- Add “Turn” to “Axis Mappings”, assign mouse axis
- Add “LookUp” to “Axis Mappings”, assign mouse axis
- Add “TurnRate” to “Axis Mappings”, assign joystick axis
- Add “LookUpRate” to “Axis Mappings”, assign joystick axis

1. Open the example level (optional).  
a. In Content Browser, choose the “NinjaCharacter Content” path/folder  
b. NinjaCharacter \> Maps  
c. Double click on “NinjaCharacterExampleMap”  
d. Play the level (input bindings required), or simulate the level (ALT+S)

2. Open any level of your game project.

3. If you DON’T have your own Character Blueprint:  
a. In Content Browser, choose the “NinjaCharacter Content” path/folder  
b. NinjaCharacter \> Blueprints  
c. Right click on “NinjaPlayerCharacter\_BP”  
d. Asset Actions \> Migrate…  
e. Click on “OK” button  
f. Choose your project’s Content folder

4. If you have your own Character Blueprint:  
a. In Content Browser, search your own Character Blueprint  
b. Open it  
c. File \> Reparent Blueprint  
d. Choose “NinjaCharacter”  
e. In Content Browser, choose the “NinjaCharacter Content” path/folder  
f. NinjaCharacter \> Blueprints  
g. Double click on “NinjaPlayerCharacter\_BP”  
h. Click on “Event Graph” tab  
i. Copy nodes and connections you need (for player input) to your own Character Blueprint  
j. In “Components” panel, select “NinjaPlayerCharacter\_BP(self)”  
k. Copy the changed settings you need to your own Character Blueprint  
l. In “Components” panel, select “CharacterMovement (Inherited)”  
m. Copy the changed settings you need to your own Character Blueprint

5. If you DON’T have your own PlayerController Blueprint:  
a. In Content Browser, click on “Add New” button  
b. Select “Blueprint Class”  
c. Click on “Player Controller” button  
d. Name it, open it  
e. Change the “Player Camera Manager Class” setting to “NinjaPlayerCameraManager”

6. If you have your own PlayerController Blueprint:  
a. In Content Browser, search your own PlayerController Blueprint  
b. Open it  
c. Change the “Player Camera Manager Class” setting to “NinjaPlayerCameraManager”

7. If you DON’T have your own GameModeBase Blueprint:  
a. In Content Browser, click on “Add New” button  
b. Select “Blueprint Class”  
c. Click on “Game Mode Base” button  
d. Name it, open it  
e. Change the “Player Controller Class” setting to the PlayerController Blueprint  
f. Change the “Default Pawn Class” setting to the Character Blueprint

8. If you have your own GameModeBase Blueprint:  
a. In Content Browser, search your own GameModeBase Blueprint  
b. Open it  
c. Verify the “Player Controller Class” setting uses your own PlayerController Blueprint  
d. Verify the “Default Pawn Class” setting uses your own Character Blueprint

9. In your level, Window \> World Settings

10. In “World Settings” panel, change the “GameMode Override” setting to your own GameModeBase Blueprint

11. Play your level

---

<div class="post-metadata">

**Author:** ![Basement\_Bob](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Basement\_Bob](https://forums.unrealengine.com/u/Basement_Bob)\
**Post date:** [October 6, 2020, 10:47pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/2 "2020-10-06T22:47:25Z")

</div>

Hi. thanks for you hard work,

just wondering, the align character to floor really needs a lerp or something to smooth it out, at the moment it appears to be stuttering due to suddenly changing angle to match face below z axis.

Change over time from current angle under z axis to new z axis angle factoring in movement speed.

I’ll have a play later, see if I can put something in, but currently between teeth extraction appointments so can’t think straight at the moment, 2020 ☹

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 7, 2020, 9:10pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/3 "2020-10-07T21:10:00Z")

</div>

It’s something that never bothered me… smoothing the collision capsule orientation is troublesome for character movement… it’s difficult to explain if you don’t test it… movement becomes “unreliable”.  
I always thought that it’s better to smooth the skeletal mesh orientation, or use really smooth floor geometry.

Best wishes

---

<div class="post-metadata">

**Author:** ![MadPolygon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/madpolygon/32/268902_2.png) [@MadPolygon](https://forums.unrealengine.com/u/MadPolygon)\
**Post date:** [October 8, 2020, 9:00am UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/4 "2020-10-08T09:00:45Z")

</div>

Thats really cool, wish Epic could add more flexible solutions like these natively so we didn’t have to find a hacky solution. Why hasn’t epic merged it into unreal engine yet? I could see this behavior be very desirable for alot of stylized projects? More flexibility and exposed elements would be great in future! Thanks again

---

<div class="post-metadata">

**Author:** ![CreativeColony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CreativeColony](https://forums.unrealengine.com/u/CreativeColony)\
**Post date:** [October 9, 2020, 2:51pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/5 "2020-10-09T14:51:28Z")

</div>

before buying I want to know whether I can use this in a game or not. I’d like to use it as a ability for a limited amount of time and that time run out player falls down and becomes becomes human

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 9, 2020, 3:20pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/6 "2020-10-09T15:20:08Z")

</div>

> [@MadPolygon](#):
>
> Thats really cool, wish Epic could add more flexible solutions like these natively so we didn’t have to find a hacky solution. Why hasn’t epic merged it into unreal engine yet? I could see this behavior be very desirable for alot of stylized projects? More flexibility and exposed elements would be great in future! Thanks again

Nope, Epic has no plans to merge this into Unreal Engine that I know, it’s a feature that needs to be flawless, adds costs to maintenance, code logic is more complex, etc. You’re welcome!

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 10, 2020, 10:09am UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/7 "2020-10-10T10:09:01Z")

</div>

> [@CreativeColony](#):
>
> before buying I want to know whether I can use this in a game or not. I’d like to use it as a ability for a limited amount of time and that time run out player falls down and becomes becomes human

Yeah, you should be able to turn on/off each configurable checkbox through blueprints, let me know if you think there is something missing. BTW, the plugin is FREE.

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 18, 2020, 6:53pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/8 "2020-10-18T18:53:45Z")

</div>

> [@Dynamic gravity for characters](https://forums.unrealengine.com/t/dynamic-gravity-for-characters/19678/230):
>
> Hi Xaklse
> 
> I had to make a local change to get smooth movement on the player for our project. Using a (quite big) spherical world seems to make the delta between old-new gravity directions too big to get a smooth transition .
> 
> Therefor I had to disable the return statement in ninjacharacter.cpp (which sets the control rotation).
> 
> Also added a rotator lerp in the movementcomponent (that still has the return statement a few lines prior).
> 
> Do you think this will have a huge impact on performance eventually? If so, what would you recommend to smoothen out the (rotational)movement? Using camera lag smoothens it out a little, but not entirely (and we rather don’t have much lag on the camera)
> 
> NinjaCharacter.cpp line 223:
> 
> ```auto
> 
> if ((LastAxisZ | NewAxisZ) >= THRESH_NORMALS_ARE_PARALLEL)
> {
> //return;
> }
> 
> ```
> 
> NinjaCharacterMovementComponent.cpp line 5380:
> 
> ```auto
> 
> // Abort if angle between new and old capsule 'up' axes almost equals to 0 degrees
> if ((DesiredCapsuleUp | CurrentCapsuleUp) >= THRESH_NORMALS_ARE_PARALLEL)
> {
> return;
> }
> 
> //// Take desired Z rotation axis of capsule, try to keep current X rotation axis of capsule
> const FRotator NewRotation = FNinjaMath::MakeFromZQuat(DesiredCapsuleUp,
> UpdatedComponent->GetComponentQuat()).Rotator();
> **const FRotator CurrentRotation = FNinjaMath::MakeFromZQuat(CurrentCapsuleUp,
> UpdatedComponent->GetComponentQuat()).Rotator();**
> 
> if (!bRotateAroundCenter)
> {
> float PawnRadius, PawnHalfHeight;
> CharacterOwner->GetCapsuleComponent()->GetScaledCapsuleSize(PawnRadius, PawnHalfHeight);
> 
> // Rotate capsule around the origin of the bottom sphere
> const float SphereHeight = PawnHalfHeight - PawnRadius;
> const FVector Delta = CurrentCapsuleUp * (SphereHeight * -1.0f) + DesiredCapsuleUp * SphereHeight;
> 
> **FRotator RotationLerp = UKismetMathLibrary::RInterpTo(CurrentRotation, NewRotation, GetWorld()->GetDeltaSeconds(), 4.0f);**
> 
> // Not using MoveUpdatedComponent to bypass constraints
> UpdatedComponent->MoveComponent(Delta, **RotationLerp** , true);
> }
> 
> ```
> 
> nonetheless, nice work on the update!! Especially the new debug options are really useful!

Huge performance impact? It depends on how much processing time you can spend on character movement, which is rather heavy. How many ninja characters do you have in your game?

It’s better to avoid smoothing the invisible capsule orientation and smooth the visible stuff (skeletal & camera); or make the capsule smooth with more complex logic that involves recalculation of floor-normal/capsule-axis, avoiding time-based logic.

What’s the size of the planet sphere you have? (To test with)

---

<div class="post-metadata">

**Author:** ![Frank\_Post](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frank\_Post](https://forums.unrealengine.com/u/Frank_Post)\
**Post date:** [October 19, 2020, 9:58am UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/9 "2020-10-19T09:58:47Z")

</div>

Hi  
We actually don’t want to put a firm number on the amount of players (yet). That’ll mostly depend on overall performance we get, but we’re hoping to get in the range of 16-24 (online multiplayer).

I wasn’t really a big fan of the time-based lerp myself, as posted above. Didn’t think of smoothing the mesh/camera in stead of the capsule, that’s a good idea, thanks! I rather avoid the capsule axis/floor calculations then, since I guess that’s the biggest hit on performance.

The world we currently use is 170 units in diameter, which isn’t awfully big, yet big enough to make the gravity rotation noticeable.

---

<div class="post-metadata">

**Author:** ![Enraged91](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Enraged91](https://forums.unrealengine.com/u/Enraged91)\
**Post date:** [October 22, 2020, 1:58pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/10 "2020-10-22T13:58:19Z")

</div>

@Xaklse

​​​​​​​Two things I noticed that may be a bit of an issue for me.

Firstly it doesn’t appear to work with aimoffsets as the character is usually looking in the wrong direction when upside down or sideways and such.

Secondly it doesn’t appear to work properly at higher speeds. When I upped the speed of the rotating platforms for instance and added multiple directions the character goes flying off. I’m intending to use this for spaceships that can move while the character is inside so it creates a bit of trouble.

Any ideas for how to solve these issues? I’d greatly appreciate any advice.

---

<div class="post-metadata">

**Author:** ![CambrianLogistic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CambrianLogistic](https://forums.unrealengine.com/u/CambrianLogistic)\
**Post date:** [October 22, 2020, 6:21pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/11 "2020-10-22T18:21:42Z")

</div>

Hey [Xaklse](https://forums.unrealengine.com/member/4059-xaklse),

We’ve ran into an issue when packaging our build for Android.

NinjaPhysicsVolume.h(28) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.

NinjaPhysicsVolumeSpline.h(26) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.

What adjustments would you suggest to complete the packaging process? This is our only issue with the packaging process for our title. We don’t want to make an drastic changes as this was a last minute addition as we are still learning more and more about the plugin.

Kind regards and big thanks in advance Xaklse!

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 25, 2020, 5:54pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/12 "2020-10-25T17:54:37Z")

</div>

> [@Enraged91](#):
>
> ​​​​​​​Two things I noticed that may be a bit of an issue for me.
> 
> Firstly it doesn’t appear to work with aimoffsets as the character is usually looking in the wrong direction when upside down or sideways and such.
> 
> Secondly it doesn’t appear to work properly at higher speeds. When I upped the speed of the rotating platforms for instance and added multiple directions the character goes flying off. I’m intending to use this for spaceships that can move while the character is inside so it creates a bit of trouble.
> 
> Any ideas for how to solve these issues? I’d greatly appreciate any advice.

I never used AimOffset myself, is there any Epic example project that uses it?  
I will try to reproduce the platform issue and see if a solution comes to mind.

.

> [@CambrianLogistic](#):
>
> Hey [Xaklse](https://forums.unrealengine.com/member/4059-xaklse),  
> We’ve ran into an issue when packaging our build for Android.  
> NinjaPhysicsVolume.h(28) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.  
> NinjaPhysicsVolumeSpline.h(26) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
> 
> What adjustments would you suggest to complete the packaging process? This is our only issue with the packaging process for our title. We don’t want to make an drastic changes as this was a last minute addition as we are still learning more and more about the plugin.
> 
> Kind regards and big thanks in advance Xaklse!

Leaving the reply here for others:  
Just add _ **,Category=“NinjaPhysicsVolume”** _ to the lines the packager is mentioning (subtract 1 to each number), it will work.

```auto

UPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category="NinjaPhysicsVolume")

```

---

<div class="post-metadata">

**Author:** ![Frank\_Post](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frank\_Post](https://forums.unrealengine.com/u/Frank_Post)\
**Post date:** [October 25, 2020, 9:24pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/13 "2020-10-25T21:24:23Z")

</div>

We’re also using camera offsets, but (so far) didnt notice a problem. Are you using the ninja camera manager in the controller? I forgot that once myself, and caused some issues with gimbal locks and weir rotations.

the gravity updates after the delta between old and new gravity directions gets exceeded. I can imagine if the physics get calculated while that delta isnt exceeded, it could cause physics to misbehave. Could try attaching the player to the ship, so it becomes a child object. although not sure if that causes other issues

---

<div class="post-metadata">

**Author:** ![ksimpson1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ksimpson1986](https://forums.unrealengine.com/u/ksimpson1986)\
**Post date:** [October 26, 2020, 12:21am UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/14 "2020-10-26T00:21:24Z")

</div>

Hi, I noticed an update today for your plugin. Do you have any changelog notes for this update? I was just curious of any new changes. Thanks!

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 26, 2020, 6:33pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/15 "2020-10-26T18:33:38Z")

</div>

> [@Enraged91](#):
>
> Firstly it doesn’t appear to work with aimoffsets as the character is usually looking in the wrong direction when upside down or sideways and such.

Could you please verify what Frank recently posted?

> [@Frank\_Post](#):
>
> We’re also using camera offsets, but (so far) didnt notice a problem. Are you using the ninja camera manager in the controller? I forgot that once myself, and caused some issues with gimbal locks and weir rotations.

.  
.

> [@ksimpson1986](#):
>
> Hi, I noticed an update today for your plugin. Do you have any changelog notes for this update? I was just curious of any new changes. Thanks!

It’s just a minor update, v1.02.25:

- Fixed game packaging with this plugin.  
I also forgot to remove a test map & character blueprint that slipped in. Next time it won’t happen :o

---

<div class="post-metadata">

**Author:** ![Tartopute](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tartopute](https://forums.unrealengine.com/u/Tartopute)\
**Post date:** [October 26, 2020, 6:53pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/16 "2020-10-26T18:53:19Z")

</div>

I truly love your plugin, thanks for putting it free on the marketplace!  
I have a little issue with my camera and i don’t know how to fix it (i’m a bit of a newbie in BP and C++ so, sorry if it’s an easy one to fix :o )  
It seems that the camera rotates at 90° after the character has climbed a specific angle  
If you have any idea how to solve this problem i’d be very glad!  
[![](https://media2.giphy.com/media/fw5F6254V6CuJQ2GFj/giphy.gif) ](https://media2.giphy.com/media/fw5F6254V6CuJQ2GFj/giphy.gif)

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 27, 2020, 6:59pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/17 "2020-10-27T18:59:17Z")

</div>

_“To start using a Ninja in your game project, create a Blueprint Class and choose NinjaCharacter as parent class, copy the Event Graph and Variables from the NinjaPlayerCharacter\_BP Blueprint example, configure more settings, and assign it as your “Default Pawn Class” in your level. …] The camera that follows the Ninja rotates correctly thanks to the Ninja PlayerCameraManager that I assigned as the “Player Camera Manager Class” in the PlayerController Blueprint (which is used by the GameMode Blueprint set in this level).”_

Hello Tartopute, did you also create a PlayerController blueprint that uses a NinjaPlayerCameraManager?

---

<div class="post-metadata">

**Author:** ![Danial.A9](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danial.a9/32/88706_2.png) [@Danial.A9](https://forums.unrealengine.com/u/Danial.A9)\
**Post date:** [October 28, 2020, 12:53am UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/18 "2020-10-28T00:53:37Z")

</div>

Hi,

I can’t find any of the content? I’ve definitely installed it to the engine, and I’ve also enabled it in the project. But I only see the default 3rd Person Character Map and that’s it, nothing else. Any advice?

---

<div class="post-metadata">

**Author:** ![DoomCross](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DoomCross](https://forums.unrealengine.com/u/DoomCross)\
**Post date:** [October 28, 2020, 12:29pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/19 "2020-10-28T12:29:22Z")

</div>

Hey, maybe I’m too stupid, but where can I find the example project for this?

---

<div class="post-metadata">

**Author:** ![Xaklse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xaklse/32/769867_2.png) [@Xaklse](https://forums.unrealengine.com/u/Xaklse)\
**Post date:** [October 28, 2020, 6:42pm UTC](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744/20 "2020-10-28T18:42:53Z")

</div>

There is only an example level to learn how to use the new classes.

1. Mark “Show Engine Content” and “Show Plugin Content” checkboxes in “View Options” of the Content Browser.
2. Choose the “NinjaCharacter Content” path/folder in the Content Browser.
3. Search for ‘ninja’ and you should find the map easily.

The map’s location is:  
_(NinjaCharacter Content)_/NinjaCharacter/Maps/NinjaCharacterExampleMap.umap

[Next page](https://forums.unrealengine.com/t/ninja-character-dynamic-gravity-for-characters-objects/151744.md?page=2)
