The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:Actor (UDK)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Actor |
Contents
|
- Package:
- Engine
- Known classes within Actor:
- NavigationHandle
- Direct subclasses:
- Brush, CameraActor, Camera, Controller, CrowdAgentBase, CrowdAgent, CrowdAttractor, CrowdReplicationActor, DecalActorBase, DecalManager, DroppedPickup, DynamicSMActor, EmitterPool, Emitter, FluidInfluenceActor, FluidSurfaceActor, FractureManager, FracturedStaticMeshActor, GameCrowdInteractionPoint, GameCrowdReplicationActor, GameExplosionActor, HUD, Info, InventoryManager, Inventory, KAsset, Keypoint, LensFlareSource, Light, MaterialInstanceActor, MatineeActor, NavMeshObstacle, NavigationPoint, Note, NxForceField, ParticleEventManager, Pawn, PhysAnimTestActor, PhysXDestructiblePart, PrefabInstance, Projectile, PylonSeed, RadialBlurActor, RigidBodyBase, SceneCaptureActor, SkeletalMeshActor, SpeedTreeActor, SplineActor, StaticMeshActorBase, StaticMeshActorBasedOnExtremeContent, Trigger, UTAvoidMarker, UTCarriedObject, UTGib, UTJumpBootEffect, UTLinkBeamLight, UTVehicleBoostPad, UTWeaponAttachment, UTWeaponShield, VehicleMovementEffect
- This class in other games:
- RTNP, U1, U2, U2XMP, UE2Runtime, UT, UT2003, UT2004, UT3
| This is an auto-generated page and may need human attention. Please remove this tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Actor: The base class of all actors. Actor is the base class of all gameplay objects. A large number of properties, behaviors and interfaces are implemented in Actor, including:
- Display - Animation - Physics and world interaction - Making sounds - Networking properties - Actor creation and destruction - Actor iterator functions - Message broadcasting
[edit] Constants
[edit] TRACEFLAG_Bullet
Value: 1
List of extra trace flags
[edit] TRACEFLAG_PhysicsVolumes
Value: 2
[edit] TRACEFLAG_SkipMovers
Value: 4
[edit] TRACEFLAG_Blocking
Value: 8
[edit] REP_RBLOCATION_ERROR_TOLERANCE_SQ
Value: 16.0f
when bReplicateRigidBodyLocation is true, the root body of a ragdoll will be replicated but this is not entirely accurate (and isn't meant to be) as the other bodies in the ragdoll may interfere this can then result in jittering from the client constantly trying to apply the replicated value so if the client's error is less than this amount from the replicated value, it will be ignored
[edit] MINFLOORZ
Value: 0.7
[edit] ACTORMAXSTEPHEIGHT
Value: 35.0
max height floor walking actor can step up to
[edit] RBSTATE_LINVELSCALE
Value: 10.0
[edit] RBSTATE_ANGVELSCALE
Value: 1000.0
[edit] RB_None
Value: 0x00
Not set, empty
[edit] RB_NeedsUpdate
Value: 0x01
If bNewData & RB_NeedsUpdate != 0 then an update is needed
[edit] RB_Sleeping
Value: 0x02
if bNewData & RB_Sleeping != 0 then this RigidBody needs to sleep
[edit] Properties
[edit] Property group 'Advanced'
[edit] bConsiderAllStaticMeshComponentsForStreaming
Type: bool
If true, texture streaming code iterates over all StaticMeshComponents found on this actor when building texture streaming information.
[edit] bEdShouldSnap
Type: bool
Snap to grid in editor.
[edit] bHiddenEd
Type: bool
Modifiers: const
Is hidden during editing.
[edit] bHiddenEdGroup
Type: bool
Modifiers: const
Is hidden by the group brower.
[edit] bLockLocation
Type: bool
Prevent the actor from being moved in the editor.
[edit] TickFrequencyAtEndDistance
Type: float
When the actor is TickFrequencyDecreaseDistanceEnd from the player, tick at this frequency (in seconds, bigger is less frequent ticks). If this is 0, no decrease in frequency will occur
[edit] Property group 'Attachment'
[edit] Base
Type: Actor
Modifiers: const
Actor we're standing on.
[edit] BaseBoneName
Type: name
[edit] BaseSkelComponent
Type: SkeletalMeshComponent
[edit] bHardAttach
Type: bool
Modifiers: const
[edit] bIgnoreBaseRotation
Type: bool
[edit] bShadowParented
Type: bool
If TRUE, BaseSkelComponent is used as the shadow parent for this actor.
[edit] Property group 'Collision'
[edit] bCanStepUpOn
Type: bool
If TRUE, PHYS_Walking will attempt to step up onto this object when it hits it
Default value: True
[edit] bCollideComplex
Type: bool
Ignore Simple Collision on Static Meshes, and collide per Poly.
[edit] BlockRigidBody
Type: bool
Modifiers: const, transient
mirrored copy of CollisionComponent's BlockRigidBody for the Actor property window for LDs (so it's next to CollisionType) purely for editing convenience and not used at all by the physics code
[edit] bNoEncroachCheck
Type: bool
For encroachers, don't do the overlap check when they move. You will not get touch events for this actor moving, but it is much faster. So if you want touch events from volumes or triggers you need to set this to be FALSE. This is an optimisation for large numbers of PHYS_RigidBody actors for example.
[edit] bPathColliding
Type: bool
this actor should collide (if bWorldGeometry && bBlockActors is true) during path building (ignored if bStatic is true, as actor will always collide during path building)
[edit] bPhysRigidBodyOutOfWorldCheck
Type: bool
If true, do a zero-extent trace each frame from old to new Location when in PHYS_RigidBody. If it hits the world (ie might be tunneling), call FellOutOfWorld.
[edit] CollisionComponent
Type: PrimitiveComponent
Modifiers: editconst
[edit] CollisionType
Type: ECollisionType
Modifiers: const, transient
enum for LDs to select collision options - sets Actor flags and that of our CollisionComponent via PostEditChange()
Default value: COLLIDE_NoCollision
[edit] Property group 'Debug'
[edit] bDebug
Type: bool
[edit] Property group 'Display'
[edit] bHidden
Type: bool
Modifiers: const
If this is True, all PrimitiveComponents of the actor are hidden. If this is false, only PrimitiveComponents with HiddenGame=True are hidden.
[edit] DrawScale
Type: float
Modifiers: const, interp
Scaling factor, 1.0=normal size.
Default value: 1.0
[edit] DrawScale3D
Type: Object.Vector
Modifiers: const, interp
Scaling vector, (1.0,1.0,1.0)=normal size.
Default value:
| Member | Value |
|---|---|
| X | 1.0 |
| Y | 1.0 |
| Z | 1.0 |
[edit] PrePivot
Type: Object.Vector
Modifiers: const
Offset from box center for drawing.
[edit] Property group 'Movement'
[edit] Location
Type: Object.Vector
Modifiers: const
Actor's location; use Move or SetLocation to change.
[edit] Physics
Type: EPhysics
Modifiers: const
[edit] Rotation
Type: Object.Rotator
Modifiers: const
The actor's rotation; use SetRotation to change.
[edit] RotationRate
Type: Object.Rotator
Change in rotation per second.
[edit] Property group 'Navigation'
[edit] bBlocksNavigation
Type: bool
indicates that this Actor can dynamically block AI paths
[edit] Property group 'Object'
[edit] Group
Type: name
[edit] Tag
Type: name
Actor's tag name.
[edit] Property group 'Physics'
[edit] bAllowFluidSurfaceInteraction
Type: bool
Whether this actor will interact with fluid surfaces or not.
Default value: True
[edit] Internal variables
[edit] Enums
See Actor enums.
[edit] Structs
See Actor structs.
[edit] Functions
[edit] Static native functions
[edit] BP2Vect
This will take the BasedPosition passed and return a Vector for it *
[edit] DrawDebugBox
Draw a debug box
[edit] DrawDebugCone
Draw a debug cone
[edit] DrawDebugCoordinateSystem
Draw Debug coordinate system
[edit] DrawDebugCylinder
Draw a debug cylinder
[edit] DrawDebugLine
Draw a debug line
[edit] DrawDebugPoint
Draw a debug point
[edit] DrawDebugSphere
Draw a debug sphere
[edit] FlushPersistentDebugLines
Flush persistent lines
[edit] GetBasedPosition
This will take the BasedPosition passed and return a Vector for it *
[edit] GetPackageGuid
Looks up the GUID of a package on disk. The package must NOT be in the autodownload cache. This may require loading the header of the package in question and is therefore slow.
[edit] SetBasedPosition
This will calculate and then set the passed in BasedPosition. This is just modifying the passed in BasedPosition.
[edit] Vect2BP
This will calculate and then set the passed in BasedPosition. This is just modifying the passed in BasedPosition.
[edit] Other static functions
[edit] GetLocalString
[edit] ReplaceText
[edit] Iterator functions
[edit] AllActors
[edit] AllOwnedComponents
Iterates over all components directly or indirectly attached to this actor.
Parameters:
- BaseClass - Only components deriving from BaseClass will be iterated upon.
- OutComponent - The iteration variable.
[edit] BasedActors
[edit] ChildActors
[edit] CollidingActors
[edit] ComponentList
returns each component in the Components list
[edit] DynamicActors
[edit] LocalPlayerControllers
iterator LocalPlayerControllers() returns all locally rendered/controlled player controllers (typically 1 per client, unless split screen)
[edit] OverlappingActors
Returns colliding (bCollideActors==true) which overlap a Sphere from location 'Loc' and 'Radius' radius.
Parameters:
- BaseClass - The Actor returns must be a subclass of this.
- out_Actor - returned Actor at each iteration.
- Radius - Radius of sphere for overlapping check.
- Loc - Center of sphere for overlapping check. (Optional, caller's location is used otherwise).
- bIgnoreHidden - if true, ignore bHidden actors.
[edit] TouchingActors
[edit] TraceActors
[edit] VisibleActors
[edit] VisibleCollidingActors
[edit] Latent functions
[edit] FinishAnim
[edit] Sleep
[edit] Native functions
[edit] Events
See Actor events.
