# Set contraint soft limit and drive mode

**URL:** <https://forums.unrealengine.com/t/set-contraint-soft-limit-and-drive-mode/369854>\
**Category:** World Creation\
**Tags:** physics-constraint, unreal-engine, CPP, question\
**Created:** [September 8, 2016, 9:38pm UTC](https://forums.unrealengine.com/t/set-contraint-soft-limit-and-drive-mode/369854 "2016-09-08T21:38:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardway](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hardway/32/769254_2.png) [@hardway](https://forums.unrealengine.com/u/hardway)\
**Post date:** [September 8, 2016, 9:38pm UTC](https://forums.unrealengine.com/t/set-contraint-soft-limit-and-drive-mode/369854/1 "2016-09-08T21:38:06Z")

</div>

This is deprecated

```
myconstraint->ConstraintInstance.bSwingLimitSoft
myconstraint->ConstraintInstance.AngularDriveMode

```

How to set soft limit flags and drive mode?

---

<div class="post-metadata">

**Author:** ![terids](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@terids](https://forums.unrealengine.com/u/terids)\
**Post date:** [March 14, 2017, 5:42pm UTC](https://forums.unrealengine.com/t/set-contraint-soft-limit-and-drive-mode/369854/2 "2017-03-14T17:42:56Z")

</div>

A lot of this functionality appears to have been moved to ProfileInstance.

```
ConstraintInstance.ProfileInstance.AngularDrive.AngularDriveMode = EAngularDriveMode::TwistAndSwing;
```
