# Rotating Cylinder (Physics)

**URL:** <https://forums.unrealengine.com/t/rotating-cylinder-physics/1291>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 29, 2014, 12:39am UTC](https://forums.unrealengine.com/t/rotating-cylinder-physics/1291 "2014-03-29T00:39:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3c491e4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3c491e4c](https://forums.unrealengine.com/u/anonymous_user_3c491e4c)\
**Post date:** [March 29, 2014, 12:39am UTC](https://forums.unrealengine.com/t/rotating-cylinder-physics/1291/1 "2014-03-29T00:39:52Z")

</div>

Hello there,

I’ve been playing around with the Blueprint Visual Scripting for quite awhile now, but could not find the solution to my problem.

To explain the thing I want to achieve (Using Physics), here is a list;

1. The Object (In this case, a Cylinder), has a maximum speed of 3 Degrees per second.
2. When key Q is pressed, the Cylinder starts to accelerate slowly (Increase speed), up to a maximum of 3 Dergees per second.
3. When key A is pressed, the Cylinder starts to decrease in speed, back to 0 Degrees per second.

Due to the physics being involved into this game, I try to get this done by using Force and such.

I hope someone is willing to help me with this (Atleast sounds like) easy thing.

Kind regards!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3c491e4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3c491e4c](https://forums.unrealengine.com/u/anonymous_user_3c491e4c)\
**Post date:** [March 29, 2014, 1:34am UTC](https://forums.unrealengine.com/t/rotating-cylinder-physics/1291/2 "2014-03-29T01:34:41Z")

</div>

Video Example of the Platform (Cylinder) I want to achieve. (This is done in Unity3D, so fairly different)

[![]( " - YouTube") ](https://www.youtube.com/watch?v=MRnkx7JWZyg)

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [March 30, 2014, 10:35am UTC](https://forums.unrealengine.com/t/rotating-cylinder-physics/1291/3 "2014-03-30T10:35:51Z")

</div>

I don’t think you need to use physics for the rotating base. You can just update the rotation each tick, something like this:

 ![RotateMesh.JPG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/e/ae1a9d4cda4acf1b6859fd178990b6d5d74a1159.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3c491e4c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3c491e4c](https://forums.unrealengine.com/u/anonymous_user_3c491e4c)\
**Post date:** [March 31, 2014, 12:21am UTC](https://forums.unrealengine.com/t/rotating-cylinder-physics/1291/4 "2014-03-31T00:21:01Z")

</div>

Thanks James, that did work!

To make the cars move freely, I need to attach them to the crosses, but from what I red elsewhere, this is not supported as of yet? (Couldn’t get it to work myself so far, as soon as I enable Physics, it detach)

Regards

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [March 31, 2014, 5:42am UTC](https://forums.unrealengine.com/t/rotating-cylinder-physics/1291/5 "2014-03-31T05:42:34Z")

</div>

You will need to use a ‘constraint component’ to create a joint between the animated base and the physics cars.
