Show / Hide Table of Contents

Class CapsuleComponent

A capsule generally used for simple collision. Bounds are rendered as lines in the editor.

Inheritance
System.Object
UObject
ActorComponent
SceneComponent
PrimitiveComponent
ShapeComponent
CapsuleComponent
Inherited Members
ShapeComponent.ShapeBodySetup
ShapeComponent.ShapeColor
ShapeComponent.bDrawOnlyIfSelected
ShapeComponent.bShouldCollideWhenPlacing
ShapeComponent.bDynamicObstacle
ShapeComponent.AreaClass
PrimitiveComponent.AddAngularImpulse(Vector, Name, Boolean)
PrimitiveComponent.AddAngularImpulseInDegrees(Vector, Name, Boolean)
PrimitiveComponent.AddAngularImpulseInRadians(Vector, Name, Boolean)
PrimitiveComponent.AddForce(Vector, Name, Boolean)
PrimitiveComponent.AddForceAtLocation(Vector, Vector, Name)
PrimitiveComponent.AddForceAtLocationLocal(Vector, Vector, Name)
PrimitiveComponent.AddImpulse(Vector, Name, Boolean)
PrimitiveComponent.AddImpulseAtLocation(Vector, Vector, Name)
PrimitiveComponent.AddRadialForce(Vector, Single, Single, Byte, Boolean)
PrimitiveComponent.AddRadialImpulse(Vector, Single, Single, Byte, Boolean)
PrimitiveComponent.AddTorque(Vector, Name, Boolean)
PrimitiveComponent.AddTorqueInDegrees(Vector, Name, Boolean)
PrimitiveComponent.AddTorqueInRadians(Vector, Name, Boolean)
PrimitiveComponent.CanCharacterStepUp(Pawn)
PrimitiveComponent.ClearMoveIgnoreActors()
PrimitiveComponent.ClearMoveIgnoreComponents()
PrimitiveComponent.CopyArrayOfMoveIgnoreActors()
PrimitiveComponent.CopyArrayOfMoveIgnoreComponents()
PrimitiveComponent.CreateAndSetMaterialInstanceDynamic(Int32)
PrimitiveComponent.CreateAndSetMaterialInstanceDynamicFromMaterial(Int32, MaterialInterface)
PrimitiveComponent.CreateDynamicMaterialInstance(Int32, MaterialInterface, Name)
PrimitiveComponent.GetAngularDamping()
PrimitiveComponent.GetCenterOfMass(Name)
PrimitiveComponent.GetClosestPointOnCollision(Vector, Name)
PrimitiveComponent.GetCollisionEnabled()
PrimitiveComponent.GetCollisionObjectType()
PrimitiveComponent.GetCollisionProfileName()
PrimitiveComponent.GetCollisionResponseToChannel(Byte)
PrimitiveComponent.GetGenerateOverlapEvents()
PrimitiveComponent.GetInertiaTensor(Name)
PrimitiveComponent.GetLinearDamping()
PrimitiveComponent.GetMass()
PrimitiveComponent.GetMassScale(Name)
PrimitiveComponent.GetMaterial(Int32)
PrimitiveComponent.GetMaterialFromCollisionFaceIndex(Int32)
PrimitiveComponent.GetNumMaterials()
PrimitiveComponent.GetOverlappingActors(SubclassOf<Actor>)
PrimitiveComponent.GetOverlappingComponents()
PrimitiveComponent.GetPhysicsAngularVelocity(Name)
PrimitiveComponent.GetPhysicsAngularVelocityInDegrees(Name)
PrimitiveComponent.GetPhysicsAngularVelocityInRadians(Name)
PrimitiveComponent.GetPhysicsLinearVelocity(Name)
PrimitiveComponent.GetPhysicsLinearVelocityAtPoint(Vector, Name)
PrimitiveComponent.GetWalkableSlopeOverride(WalkableSlopeOverride)
PrimitiveComponent.IgnoreActorWhenMoving(Actor, Boolean)
PrimitiveComponent.IgnoreComponentWhenMoving(PrimitiveComponent, Boolean)
PrimitiveComponent.IsAnyRigidBodyAwake()
PrimitiveComponent.IsGravityEnabled()
PrimitiveComponent.IsOverlappingActor(Actor)
PrimitiveComponent.IsOverlappingComponent(PrimitiveComponent)
PrimitiveComponent.K2_BoxOverlapComponent(Vector, Box, Boolean, Boolean, Boolean)
PrimitiveComponent.K2_IsCollisionEnabled()
PrimitiveComponent.K2_IsPhysicsCollisionEnabled()
PrimitiveComponent.K2_IsQueryCollisionEnabled()
PrimitiveComponent.K2_LineTraceComponent(Vector, Vector, Boolean, Boolean, Boolean)
PrimitiveComponent.K2_SphereOverlapComponent(Vector, Single, Boolean, Boolean, Boolean)
PrimitiveComponent.K2_SphereTraceComponent(Vector, Vector, Single, Boolean, Boolean, Boolean)
PrimitiveComponent.PutRigidBodyToSleep(Name)
PrimitiveComponent.ScaleByMomentOfInertia(Vector, Name)
PrimitiveComponent.SetAllMassScale(Single)
PrimitiveComponent.SetAllPhysicsAngularVelocity(Vector, Boolean)
PrimitiveComponent.SetAllPhysicsAngularVelocityInDegrees(Vector, Boolean)
PrimitiveComponent.SetAllPhysicsAngularVelocityInRadians(Vector, Boolean)
PrimitiveComponent.SetAllPhysicsLinearVelocity(Vector, Boolean)
PrimitiveComponent.SetAllUseCCD(Boolean)
PrimitiveComponent.SetAngularDamping(Single)
PrimitiveComponent.SetBoundsScale(Single)
PrimitiveComponent.SetCastShadow(Boolean)
PrimitiveComponent.SetCenterOfMass(Vector, Name)
PrimitiveComponent.SetCollisionEnabled(Byte)
PrimitiveComponent.SetCollisionObjectType(Byte)
PrimitiveComponent.SetCollisionProfileName(Name)
PrimitiveComponent.SetCollisionResponseToAllChannels(Byte)
PrimitiveComponent.SetCollisionResponseToChannel(Byte, Byte)
PrimitiveComponent.SetConstraintMode(Byte)
PrimitiveComponent.SetCullDistance(Single)
PrimitiveComponent.SetCustomDepthStencilValue(Int32)
PrimitiveComponent.SetCustomDepthStencilWriteMask(ERendererStencilMask)
PrimitiveComponent.SetEnableGravity(Boolean)
PrimitiveComponent.SetGenerateOverlapEvents(Boolean)
PrimitiveComponent.SetLinearDamping(Single)
PrimitiveComponent.SetLockedAxis(Byte)
PrimitiveComponent.SetMassOverrideInKg(Name, Single, Boolean)
PrimitiveComponent.SetMassScale(Name, Single)
PrimitiveComponent.SetMaterial(Int32, MaterialInterface)
PrimitiveComponent.SetMaterialByName(Name, MaterialInterface)
PrimitiveComponent.SetNotifyRigidBodyCollision(Boolean)
PrimitiveComponent.SetOnlyOwnerSee(Boolean)
PrimitiveComponent.SetOwnerNoSee(Boolean)
PrimitiveComponent.SetPhysicsAngularVelocity(Vector, Boolean, Name)
PrimitiveComponent.SetPhysicsAngularVelocityInDegrees(Vector, Boolean, Name)
PrimitiveComponent.SetPhysicsAngularVelocityInRadians(Vector, Boolean, Name)
PrimitiveComponent.SetPhysicsLinearVelocity(Vector, Boolean, Name)
PrimitiveComponent.SetPhysicsMaxAngularVelocity(Single, Boolean, Name)
PrimitiveComponent.SetPhysicsMaxAngularVelocityInDegrees(Single, Boolean, Name)
PrimitiveComponent.SetPhysicsMaxAngularVelocityInRadians(Single, Boolean, Name)
PrimitiveComponent.SetPhysMaterialOverride(PhysicalMaterial)
PrimitiveComponent.SetReceivesDecals(Boolean)
PrimitiveComponent.SetRenderCustomDepth(Boolean)
PrimitiveComponent.SetRenderInMainPass(Boolean)
PrimitiveComponent.SetRenderInMono(Boolean)
PrimitiveComponent.SetSimulatePhysics(Boolean)
PrimitiveComponent.SetSingleSampleShadowFromStationaryLights(Boolean)
PrimitiveComponent.SetTranslucentSortPriority(Int32)
PrimitiveComponent.SetUseCCD(Boolean, Name)
PrimitiveComponent.SetWalkableSlopeOverride(WalkableSlopeOverride)
PrimitiveComponent.WakeAllRigidBodies()
PrimitiveComponent.WakeRigidBody(Name)
PrimitiveComponent.MinDrawDistance
PrimitiveComponent.LDMaxDrawDistance
PrimitiveComponent.CachedMaxDrawDistance
PrimitiveComponent.DepthPriorityGroup
PrimitiveComponent.ViewOwnerDepthPriorityGroup
PrimitiveComponent.IndirectLightingCacheQuality
PrimitiveComponent.bEnableAutoLODGeneration
PrimitiveComponent.bUseMaxLODAsImposter
PrimitiveComponent.bNeverDistanceCull
PrimitiveComponent.bAlwaysCreatePhysicsState
PrimitiveComponent.bGenerateOverlapEvents
PrimitiveComponent.bMultiBodyOverlap
PrimitiveComponent.bCheckAsyncSceneOnMove
PrimitiveComponent.bTraceComplexOnMove
PrimitiveComponent.bReturnMaterialOnMove
PrimitiveComponent.bUseViewOwnerDepthPriorityGroup
PrimitiveComponent.bAllowCullDistanceVolume
PrimitiveComponent.bHasMotionBlurVelocityMeshes
PrimitiveComponent.bVisibleInReflectionCaptures
PrimitiveComponent.bRenderInMainPass
PrimitiveComponent.bRenderInMono
PrimitiveComponent.bReceivesDecals
PrimitiveComponent.bOwnerNoSee
PrimitiveComponent.bOnlyOwnerSee
PrimitiveComponent.bTreatAsBackgroundForOcclusion
PrimitiveComponent.bUseAsOccluder
PrimitiveComponent.bSelectable
PrimitiveComponent.bForceMipStreaming
PrimitiveComponent.bHasPerInstanceHitProxies
PrimitiveComponent.CastShadow
PrimitiveComponent.bAffectDynamicIndirectLighting
PrimitiveComponent.bAffectDistanceFieldLighting
PrimitiveComponent.bCastDynamicShadow
PrimitiveComponent.bCastStaticShadow
PrimitiveComponent.bCastVolumetricTranslucentShadow
PrimitiveComponent.bSelfShadowOnly
PrimitiveComponent.bCastFarShadow
PrimitiveComponent.bCastInsetShadow
PrimitiveComponent.bCastCinematicShadow
PrimitiveComponent.bCastHiddenShadow
PrimitiveComponent.bCastShadowAsTwoSided
PrimitiveComponent.bLightAttachmentsAsGroup
PrimitiveComponent.bReceiveMobileCSMShadows
PrimitiveComponent.bSingleSampleShadowFromStationaryLights
PrimitiveComponent.bIgnoreRadialImpulse
PrimitiveComponent.bIgnoreRadialForce
PrimitiveComponent.bApplyImpulseOnDamage
PrimitiveComponent.bReplicatePhysicsToAutonomousProxy
PrimitiveComponent.AlwaysLoadOnClient
PrimitiveComponent.AlwaysLoadOnServer
PrimitiveComponent.bUseEditorCompositing
PrimitiveComponent.bRenderCustomDepth
PrimitiveComponent.bHasCustomNavigableGeometry
PrimitiveComponent.CanCharacterStepUpOn
PrimitiveComponent.LightingChannels
PrimitiveComponent.CustomDepthStencilValue
PrimitiveComponent.TranslucencySortPriority
PrimitiveComponent.VisibilityId
PrimitiveComponent.LpvBiasMultiplier
PrimitiveComponent.BoundsScale
PrimitiveComponent.LastSubmitTime
PrimitiveComponent.LastRenderTime
PrimitiveComponent.LastRenderTimeOnScreen
PrimitiveComponent.MoveIgnoreActors
PrimitiveComponent.MoveIgnoreComponents
PrimitiveComponent.BodyInstance
PrimitiveComponent.LODParentPrimitive
PrimitiveComponent.PostPhysicsComponentTick
SceneComponent.DetachFromParent(Boolean, Boolean)
SceneComponent.DoesSocketExist(Name)
SceneComponent.GetAllSocketNames()
SceneComponent.GetAttachParent()
SceneComponent.GetAttachSocketName()
SceneComponent.GetChildComponent(Int32)
SceneComponent.GetChildrenComponents(Boolean)
SceneComponent.GetComponentVelocity()
SceneComponent.GetForwardVector()
SceneComponent.GetNumChildrenComponents()
SceneComponent.GetParentComponents()
SceneComponent.GetPhysicsVolume()
SceneComponent.GetRelativeTransform()
SceneComponent.GetRightVector()
SceneComponent.GetShouldUpdatePhysicsVolume()
SceneComponent.GetSocketLocation(Name)
SceneComponent.GetSocketQuaternion(Name)
SceneComponent.GetSocketRotation(Name)
SceneComponent.GetSocketTransform(Name, Byte)
SceneComponent.GetUpVector()
SceneComponent.IsAnySimulatingPhysics()
SceneComponent.IsSimulatingPhysics(Name)
SceneComponent.IsVisible()
SceneComponent.K2_AddLocalOffset(Vector, Boolean, Boolean)
SceneComponent.K2_AddLocalRotation(Rotator, Boolean, Boolean)
SceneComponent.K2_AddLocalTransform(Transform, Boolean, Boolean)
SceneComponent.K2_AddRelativeLocation(Vector, Boolean, Boolean)
SceneComponent.K2_AddRelativeRotation(Rotator, Boolean, Boolean)
SceneComponent.K2_AddWorldOffset(Vector, Boolean, Boolean)
SceneComponent.K2_AddWorldRotation(Rotator, Boolean, Boolean)
SceneComponent.K2_AddWorldTransform(Transform, Boolean, Boolean)
SceneComponent.K2_AttachTo(SceneComponent, Name, Byte, Boolean)
SceneComponent.K2_AttachToComponent(SceneComponent, Name, EAttachmentRule, EAttachmentRule, EAttachmentRule, Boolean)
SceneComponent.K2_DetachFromComponent(EDetachmentRule, EDetachmentRule, EDetachmentRule, Boolean)
SceneComponent.K2_GetComponentLocation()
SceneComponent.K2_GetComponentRotation()
SceneComponent.K2_GetComponentScale()
SceneComponent.K2_GetComponentToWorld()
SceneComponent.K2_SetRelativeLocation(Vector, Boolean, Boolean)
SceneComponent.K2_SetRelativeLocationAndRotation(Vector, Rotator, Boolean, Boolean)
SceneComponent.K2_SetRelativeRotation(Rotator, Boolean, Boolean)
SceneComponent.K2_SetRelativeTransform(Transform, Boolean, Boolean)
SceneComponent.K2_SetWorldLocation(Vector, Boolean, Boolean)
SceneComponent.K2_SetWorldLocationAndRotation(Vector, Rotator, Boolean, Boolean)
SceneComponent.K2_SetWorldRotation(Rotator, Boolean, Boolean)
SceneComponent.K2_SetWorldTransform(Transform, Boolean, Boolean)
SceneComponent.ResetRelativeTransform()
SceneComponent.SetAbsolute(Boolean, Boolean, Boolean)
SceneComponent.SetHiddenInGame(Boolean, Boolean)
SceneComponent.SetMobility(Byte)
SceneComponent.SetRelativeScale3D(Vector)
SceneComponent.SetShouldUpdatePhysicsVolume(Boolean)
SceneComponent.SetVisibility(Boolean, Boolean)
SceneComponent.SetWorldScale3D(Vector)
SceneComponent.SnapTo(SceneComponent, Name)
SceneComponent.ToggleVisibility(Boolean)
SceneComponent.AttachParent
SceneComponent.AttachSocketName
SceneComponent.AttachChildren
SceneComponent.ClientAttachedChildren
SceneComponent.RelativeLocation
SceneComponent.RelativeRotation
SceneComponent.RelativeScale3D
SceneComponent.ComponentVelocity
SceneComponent.bComponentToWorldUpdated
SceneComponent.bAbsoluteLocation
SceneComponent.bAbsoluteRotation
SceneComponent.bAbsoluteScale
SceneComponent.bVisible
SceneComponent.bHiddenInGame
SceneComponent.bShouldUpdatePhysicsVolume
SceneComponent.bBoundsChangeTriggersStreamingDataRebuild
SceneComponent.bUseAttachParentBound
SceneComponent.bVisualizeComponent
SceneComponent.Mobility
SceneComponent.DetailMode
ActorComponent.RegisterComponent()
ActorComponent.UnregisterComponent()
ActorComponent.ReceiveBeginPlay
ActorComponent.ReceiveEndPlay
ActorComponent.ReceiveTick
ActorComponent.Activate(Boolean)
ActorComponent.AddTickPrerequisiteActor(Actor)
ActorComponent.AddTickPrerequisiteComponent(ActorComponent)
ActorComponent.ComponentHasTag(Name)
ActorComponent.Deactivate()
ActorComponent.GetComponentTickInterval()
ActorComponent.GetOwner()
ActorComponent.IsActive()
ActorComponent.IsBeingDestroyed()
ActorComponent.IsComponentTickEnabled()
ActorComponent.K2_DestroyComponent(UObject)
ActorComponent.RemoveTickPrerequisiteActor(Actor)
ActorComponent.RemoveTickPrerequisiteComponent(ActorComponent)
ActorComponent.SetActive(Boolean, Boolean)
ActorComponent.SetAutoActivate(Boolean)
ActorComponent.SetComponentTickEnabled(Boolean)
ActorComponent.SetComponentTickInterval(Single)
ActorComponent.SetIsReplicated(Boolean)
ActorComponent.SetTickableWhenPaused(Boolean)
ActorComponent.SetTickGroup(Byte)
ActorComponent.ToggleActive()
ActorComponent.PrimaryComponentTick
ActorComponent.AssetUserData
ActorComponent.bReplicates
ActorComponent.bNetAddressable
ActorComponent.bAutoActivate
ActorComponent.bIsActive
ActorComponent.bEditableWhenInherited
ActorComponent.bCanEverAffectNavigation
ActorComponent.bIsEditorOnly
ActorComponent.bIsVisualizationComponent
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 CapsuleComponent : ShapeComponent

Properties

| Improve this Doc View Source

CapsuleHalfHeight

Half-height, from center of capsule to the end of top or bottom hemisphere.

Declaration
public float CapsuleHalfHeight { get; }
Property Value
Type Description
System.Single
Remarks

This cannot be less than CapsuleRadius.

| Improve this Doc View Source

CapsuleRadius

Radius of cap hemispheres and center cylinder.

Declaration
public float CapsuleRadius { get; }
Property Value
Type Description
System.Single
Remarks

This cannot be more than CapsuleHalfHeight.

| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

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

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

GetScaledCapsuleHalfHeight()

Returns the capsule half-height scaled by the component scale.

Declaration
public float GetScaledCapsuleHalfHeight()
Returns
Type Description
System.Single
Remarks

This includes both the cylinder and hemisphere cap. @return The capsule half-height scaled by the component scale.

| Improve this Doc View Source

GetScaledCapsuleHalfHeight_WithoutHemisphere()

Returns the capsule half-height minus radius (to exclude the hemisphere), scaled by the component scale.

Declaration
public float GetScaledCapsuleHalfHeight_WithoutHemisphere()
Returns
Type Description
System.Single
Remarks

From the center of the capsule this is the vertical distance along the straight cylindrical portion to the point just before the curve of top hemisphere begins. @return The capsule half-height minus radius, scaled by the component scale.

| Improve this Doc View Source

GetScaledCapsuleRadius()

Returns the capsule radius scaled by the component scale.

Declaration
public float GetScaledCapsuleRadius()
Returns
Type Description
System.Single
Remarks

@return The capsule radius scaled by the component scale.

| Improve this Doc View Source

GetScaledCapsuleSize()

Returns the capsule radius and half-height scaled by the component scale.

Declaration
public (float, float) GetScaledCapsuleSize()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
Remarks

Half-height includes the hemisphere end cap. @param OutRadius Radius of the capsule, scaled by the component scale. @param OutHalfHeight Half-height of the capsule, scaled by the component scale. Includes the hemisphere end cap. @return The capsule radius and half-height scaled by the component scale.

| Improve this Doc View Source

GetScaledCapsuleSize_WithoutHemisphere()

Returns the capsule radius and half-height scaled by the component scale.

Declaration
public (float, float) GetScaledCapsuleSize_WithoutHemisphere()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
Remarks

Half-height excludes the hemisphere end cap. @param OutRadius Radius of the capsule, ignoring component scaling. @param OutHalfHeightWithoutHemisphere Half-height of the capsule, scaled by the component scale. Excludes the hemisphere end cap. @return The capsule radius and half-height scaled by the component scale.

| Improve this Doc View Source

GetShapeScale()

Get the scale used by this shape.

Declaration
public float GetShapeScale()
Returns
Type Description
System.Single
Remarks

This is a uniform scale that is the minimum of any non-uniform scaling. @return the scale used by this shape.

| Improve this Doc View Source

GetUnscaledCapsuleHalfHeight()

Returns the capsule half-height, ignoring component scaling.

Declaration
public float GetUnscaledCapsuleHalfHeight()
Returns
Type Description
System.Single
Remarks

This includes the hemisphere end cap. @return The capsule radius, ignoring component scaling.

| Improve this Doc View Source

GetUnscaledCapsuleHalfHeight_WithoutHemisphere()

Returns the capsule half-height minus radius (to exclude the hemisphere), ignoring component scaling.

Declaration
public float GetUnscaledCapsuleHalfHeight_WithoutHemisphere()
Returns
Type Description
System.Single
Remarks

This excludes the hemisphere end cap. From the center of the capsule this is the vertical distance along the straight cylindrical portion to the point just before the curve of top hemisphere begins. @return The capsule half-height minus radius, ignoring component scaling.

| Improve this Doc View Source

GetUnscaledCapsuleRadius()

Returns the capsule radius, ignoring component scaling.

Declaration
public float GetUnscaledCapsuleRadius()
Returns
Type Description
System.Single
Remarks

@return the capsule radius, ignoring component scaling.

| Improve this Doc View Source

GetUnscaledCapsuleSize()

Returns the capsule radius and half-height scaled by the component scale.

Declaration
public (float, float) GetUnscaledCapsuleSize()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
Remarks

Half-height includes the hemisphere end cap. @param OutRadius Radius of the capsule, scaled by the component scale. @param OutHalfHeight Half-height of the capsule, scaled by the component scale. Includes the hemisphere end cap. @return The capsule radius and half-height scaled by the component scale.

| Improve this Doc View Source

GetUnscaledCapsuleSize_WithoutHemisphere()

Returns the capsule radius and half-height, ignoring component scaling.

Declaration
public (float, float) GetUnscaledCapsuleSize_WithoutHemisphere()
Returns
Type Description
System.ValueTuple<System.Single, System.Single>
Remarks

Half-height excludes the hemisphere end cap. @param OutRadius Radius of the capsule, ignoring component scaling. @param OutHalfHeightWithoutHemisphere Half-height of the capsule, scaled by the component scale. Excludes the hemisphere end cap. @return The capsule radius and half-height (excluding hemisphere end cap), ignoring component scaling.

| Improve this Doc View Source

New(UObject, Name)

Spawn an object of this class

Declaration
public static CapsuleComponent New(UObject obj = null, Name name = default(Name))
Parameters
Type Name Description
UObject obj
Name name
Returns
Type Description
CapsuleComponent
| Improve this Doc View Source

SetCapsuleHalfHeight(Single, Boolean)

Set the capsule half-height.

Declaration
public void SetCapsuleHalfHeight(float HalfHeight, bool bUpdateOverlaps)
Parameters
Type Name Description
System.Single HalfHeight
System.Boolean bUpdateOverlaps
Remarks

This is the unscaled half-height, before component scale is applied. If this capsule collides, updates touching array for owner actor. @param HalfHeight : half-height, from capsule center to end of top or bottom hemisphere. @param bUpdateOverlaps: if true and this shape is registered and collides, updates touching array for owner actor.

| Improve this Doc View Source

SetCapsuleRadius(Single, Boolean)

Set the capsule radius.

Declaration
public void SetCapsuleRadius(float Radius, bool bUpdateOverlaps)
Parameters
Type Name Description
System.Single Radius
System.Boolean bUpdateOverlaps
Remarks

This is the unscaled radius, before component scale is applied. If this capsule collides, updates touching array for owner actor. @param Radius : radius of end-cap hemispheres and center cylinder. @param bUpdateOverlaps: if true and this shape is registered and collides, updates touching array for owner actor.

| Improve this Doc View Source

SetCapsuleSize(Single, Single, Boolean)

Change the capsule size.

Declaration
public void SetCapsuleSize(float InRadius, float InHalfHeight, bool bUpdateOverlaps)
Parameters
Type Name Description
System.Single InRadius
System.Single InHalfHeight
System.Boolean bUpdateOverlaps
Remarks

This is the unscaled size, before component scale is applied. @param InRadius : radius of end-cap hemispheres and center cylinder. @param InHalfHeight : half-height, from capsule center to end of top or bottom hemisphere. @param bUpdateOverlaps: if true and this shape is registered and collides, updates touching array for owner actor.

Operators

| Improve this Doc View Source

Implicit(IntPtr to CapsuleComponent)

Convert from IntPtr to UObject

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