Show / Hide Table of Contents

Class BodySetup

BodySetup contains all collision information that is associated with a single asset.

Inheritance
System.Object
UObject
BodySetup
SkeletalBodySetup
Inherited Members
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class BodySetup : UObject
Remarks

A single BodySetup instance is shared among many BodyInstances so that geometry data is not duplicated. Assets typically implement a GetBodySetup function that is used during physics state creation.

@see GetBodySetup @see FBodyInstance

Properties

| Improve this Doc View Source

AggGeom

Simplified collision representation of this

Declaration
public KAggregateGeom AggGeom { get; set; }
Property Value
Type Description
KAggregateGeom
| Improve this Doc View Source

bConsiderForBounds

Declaration
public bool bConsiderForBounds { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

bDoubleSidedGeometry

Declaration
public bool bDoubleSidedGeometry { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

bGenerateMirroredCollision

Declaration
public bool bGenerateMirroredCollision { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

bGenerateNonMirroredCollision

Declaration
public bool bGenerateNonMirroredCollision { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

bMeshCollideAll

Declaration
public bool bMeshCollideAll { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

BoneName

Used in the PhysicsAsset case. Associates this Body with Bone in a skeletal mesh.

Declaration
public Name BoneName { get; set; }
Property Value
Type Description
Name
| Improve this Doc View Source

bSharedCookedData

Declaration
public bool bSharedCookedData { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

BuildScale3D

Build scale for this body setup (static mesh settings define this value)

Declaration
public Vector BuildScale3D { get; set; }
Property Value
Type Description
Vector
| Improve this Doc View Source

CollisionReponse

Collision Type for this body. This eventually changes response to collision to others *

Declaration
public byte CollisionReponse { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

CollisionTraceFlag

Collision Trace behavior - by default, it will keep simple(convex)/complex(per-poly) separate *

Declaration
public byte CollisionTraceFlag { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

DefaultInstance

Default properties of the body instance, copied into objects on instantiation, was URB_BodyInstance

Declaration
public BodyInstance DefaultInstance { get; set; }
Property Value
Type Description
BodyInstance
| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static BodySetup DefaultObject { get; }
Property Value
Type Description
BodySetup
| Improve this Doc View Source

PhysicsType

If simulated it will use physics, if kinematic it will not be affected by physics, but can interact with physically simulated bodies. Default will inherit from OwnerComponent's behavior.

Declaration
public byte PhysicsType { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

PhysMaterial

Physical material to use for simple collision on this body. Encodes information about density, friction etc.

Declaration
public PhysicalMaterial PhysMaterial { get; set; }
Property Value
Type Description
PhysicalMaterial
| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class
| Improve this Doc View Source

WalkableSlopeOverride

Custom walkable slope setting for this body.

Declaration
public WalkableSlopeOverride WalkableSlopeOverride { get; set; }
Property Value
Type Description
WalkableSlopeOverride

Methods

| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static BodySetup New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
BodySetup

Operators

| Improve this Doc View Source

Implicit(IntPtr to BodySetup)

Convert from IntPtr to UObject

Declaration
public static implicit operator BodySetup(IntPtr p)
Parameters
Type Name Description
System.IntPtr p
Returns
Type Description
BodySetup
  • Improve this Doc
  • View Source
Back to top Generated by DocFX