# Physics options in a component's details are restrained

**URL:** <https://forums.unrealengine.com/t/physics-options-in-a-components-details-are-restrained/321712>\
**Category:** World Creation\
**Tags:** unreal-engine, editor, UE4, CPP, Blueprint, question\
**Created:** [June 13, 2015, 8:55pm UTC](https://forums.unrealengine.com/t/physics-options-in-a-components-details-are-restrained/321712 "2015-06-13T20:55:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f2ae6716](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f2ae6716](https://forums.unrealengine.com/u/anonymous_user_f2ae6716)\
**Post date:** [June 13, 2015, 8:55pm UTC](https://forums.unrealengine.com/t/physics-options-in-a-components-details-are-restrained/321712/1 "2015-06-13T20:55:49Z")

</div>

Hello ya’ll!

I have a little project that needed me to create a new pawn. I gave it a StaticMesh and an ArrowComponent. However, the mesh lacks most of the options I was hoping to find in the “Physics” tab of its details.

Here is what I mean.  
In the mesh from my pawn :

![46264-mymesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/0/250168716e6b015a364010d48bfa0d3f8fd50377.png)

In the mesh from a default character :

 ![46265-charactermesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/5/1357251990c77852e4b7e2426f1c747d749f56d5.png)

As you can see, My mesh has way less options. How should I go about having them? This is a C++ project. Here is the relevant code from my class.

In the .cpp

```
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Ball)
	class UStaticMeshComponent* Ball;

```

In the .h

```
Ball = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("Ball"));
	RootComponent = Ball;

```

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8e2766aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8e2766aa](https://forums.unrealengine.com/u/anonymous_user_8e2766aa)\
**Post date:** [June 14, 2015, 1:34pm UTC](https://forums.unrealengine.com/t/physics-options-in-a-components-details-are-restrained/321712/2 "2015-06-14T13:34:47Z")

</div>

Hello,

Please note that in ACharacter and its derived classes there is a Mesh component of USkeletalMesh type:

```
UPROPERTY(Category = Character, VisibleAnywhere, BlueprintReadOnly, meta = (AllowPrivateAccess = "true"))
class USkeletalMeshComponent* Mesh;

```

Also, there is a component for collision:

```
UPROPERTY(Category = Character, VisibleAnywhere, BlueprintReadOnly, meta = (AllowPrivateAccess = "true"))
class UCapsuleComponent* CapsuleComponent;

```

In ACharacter’s constructor, Mesh is attached to CapsuleComponent:

```
Mesh->AttachParent = CapsuleComponent;

```

On the other hand, APawn class doesn’t have Mesh and CapsuleComponent by default.

Thus, you can create a class, that inherits from ACharacter and have the Mesh field by default, which provides all necessary options:

 ![46318-character+mesh.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/2/f12e4730446e15477e866f0bd30c0ed463ad60ee.jpeg)

Hope this helped!

Cheers!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f2ae6716](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f2ae6716](https://forums.unrealengine.com/u/anonymous_user_f2ae6716)\
**Post date:** [June 14, 2015, 6:50pm UTC](https://forums.unrealengine.com/t/physics-options-in-a-components-details-are-restrained/321712/3 "2015-06-14T18:50:44Z")

</div>

Hey, thank you for your answer. This isn’t quite what I’m looking for though.I should probably be a bit more detailed with what I’m trying to do.

I have tried using a class derived from the Character class. However, my problem here is that I want to have a mesh as my RootComponent, which will be used for collision and physics purposes. I want the player to control a ball around basically.

Here’s what I’ve done with a character class :

 ![46339-rolltlecapsule.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/3/2c3309f04d0127acfcc10507c6bc4a50195dde1b.png)

As you can see, the Capsule component has all the Physics options I might need.

However,

 ![46340-rolltlemesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/5/b257582889f5980d31e3e7bc7344adfd12cf6e15.png)

My mesh RootComponent does not.

The situation is similar with my pawn.

 ![46351-ballpawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/b/65b3549c403c0242de15136c774d4400303c16fd.png)

Is there something in the creation of the mesh from the default Character class that I’m not doing that would give me access to those physics options?  
Thanks again.
