Class SphereComponent
A sphere generally used for simple collision. Bounds are rendered as lines in the editor.
Inheritance
System.Object
SphereComponent
Inherited Members
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 SphereComponent : ShapeComponent
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static SphereComponent DefaultObject { get; }
Property Value
Type | Description |
---|---|
SphereComponent |
SphereRadius
The radius of the sphere *
Declaration
public float SphereRadius { get; }
Property Value
Type | Description |
---|---|
System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceGetScaledSphereRadius()
@return the radius of the sphere, with component scale applied.
Declaration
public float GetScaledSphereRadius()
Returns
Type | Description |
---|---|
System.Single |
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.
GetUnscaledSphereRadius()
@return the radius of the sphere, ignoring component scale.
Declaration
public float GetUnscaledSphereRadius()
Returns
Type | Description |
---|---|
System.Single |
New(UObject, Name)
Spawn an object of this class
Declaration
public static SphereComponent New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
SphereComponent |
SetSphereRadius(Single, Boolean)
Change the sphere radius.
Declaration
public void SetSphereRadius(float InSphereRadius, bool bUpdateOverlaps)
Parameters
Type | Name | Description |
---|---|---|
System.Single | InSphereRadius | |
System.Boolean | bUpdateOverlaps |
Remarks
This is the unscaled radius, before component scale is applied. @param InSphereRadius: the new sphere radius @param bUpdateOverlaps: if true and this shape is registered and collides, updates touching array for owner actor.
Operators
| Improve this Doc View SourceImplicit(IntPtr to SphereComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator SphereComponent(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
SphereComponent |