# control the character with the mouse

**URL:** <https://forums.unrealengine.com/t/control-the-character-with-the-mouse/1414819>\
**Category:** Blueprint\
**Tags:** playercontroller, controller, unreal-engine, mouse, mouse-position, Blueprint\
**Created:** [November 23, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/control-the-character-with-the-mouse/1414819 "2023-11-23T15:53:27Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [November 23, 2023, 9:28pm UTC](https://forums.unrealengine.com/t/control-the-character-with-the-mouse/1414819/14 "2023-11-23T21:28:08Z")

</div>

Oh btw! Totally offtopic but for this type of game I got something cool. I used these calculations in a SHMUP game to control how I keep objects within screen area without the need for blocking collisions. It feels really smooth. I felt the need for this because I didn’t want to “box in” the entire level design, I could just let objects fly in and tell them to stay in the camera area bouncing or gliding at the edges. Anyway, more people can enjoy it:

> [Math question. finding distance to the edge of a plane in direction from center. - #16 by Roy\_Wierer.Seda145](https://forums.unrealengine.com/t/math-question-finding-distance-to-the-edge-of-a-plane-in-direction-from-center/1193499/16)

---

_[View the full topic](https://forums.unrealengine.com/t/control-the-character-with-the-mouse/1414819)._
