Mostly Harmless
UE3:PrimitiveComponent native functions (UT3)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Component >> ActorComponent >> PrimitiveComponent (native functions) |
- PrimitiveComponent native functions in other games:
- UDK
- Other member categories for this class:
- properties
| 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. |
[edit] Native functions
[edit] AddForce
Add a force to this component.
Parameters:
- Force - Force vector to apply. Magnitude indicates strength of force.
- Position - Position on object to apply force. If (0,0,0), force is applied at center of mass.
- BoneName - Used in the skeletal case to apply a force to a single body.
[edit] AddImpulse
Add an impulse to the physics of this PrimitiveComponent.
Parameters:
- Impulse - Magnitude and direction of impulse to apply.
- Position - Point in world space to apply impulse at. If Position is (0,0,0), impulse is applied at center of mass ie. no rotation.
- BoneName - If a SkeletalMeshComponent, name of bone to apply impulse to.
- bVelChange - If true, the Strength is taken as a change in velocity instead of an impulse (ie. mass will have no affect).
[edit] AddRadialForce
Add a force originating from the supplied world-space location.
Parameters:
- Origin - Origin of force in world space.
- Radius - Radius within which to apply the force.
- Strength - Strength of force to apply.
- Falloff - Allows you to control the strength of the force as a function of distance from Origin.
[edit] AddRadialImpulse
Add an impulse to this component, radiating out from the specified position. In the case of a skeletal mesh, may affect each bone of the mesh.
Parameters:
- Origin - Point of origin for the radial impulse blast
- Radius - Size of radial impulse. Beyond this distance from Origin, there will be no affect.
- Strength - Maximum strength of impulse applied to body.
- Falloff - Allows you to control the strength of the impulse as a function of distance from Origin.
- bVelChange - If true, the Strength is taken as a change in velocity instead of an impulse (ie. mass will have no affect).
[edit] GetRootBodyInstance
returns the physics RB_BodyInstance for the root body of this component (if any)
[edit] PutRigidBodyToSleep
Put a simulation back to see.
[edit] RigidBodyIsAwake
Returns if the body is currently awake and simulating. If a SkeletalMeshComponent, and no BoneName is specified, will pick a random bone - so does not make much sense if not all bones are jointed together.
[edit] SetAbsolute
[edit] SetActorCollision
[edit] SetBlockRigidBody
Change the value of BlockRigidBody.
Parameters:
- NewBlockRigidBody - The value to assign to BlockRigidBody.
[edit] SetCullDistance
Changes the value of CullDistance.
Parameters:
- NewCullDistance - The value to assign to CullDistance.
[edit] SetDepthPriorityGroup
Changes the value of DepthPriorityGroup.
Parameters:
- NewDepthPriorityGroup - The value to assign to DepthPriorityGroup.
[edit] SetHidden
Changes the value of HiddenGame.
Parameters:
- NewHidden - The value to assign to HiddenGame.
[edit] SetIgnoreOwnerHidden
Changes the value of bIgnoreOwnerHidden.
[edit] SetLightEnvironment
Changes the value of LightEnvironment.
Parameters:
- NewLightEnvironment - The value to assign to LightEnvironment.
[edit] SetLightingChannels
Changes the value of LightingChannels.
Parameters:
- NewLightingChannels - The value to assign to LightingChannels.
[edit] SetNotifyRigidBodyCollision
Changes the value of bNotifyRigidBodyCollision
Parameters:
- bNewNotifyRigidBodyCollision - The value to assign to bNotifyRigidBodyCollision
[edit] SetOnlyOwnerSee
Changes the value of bOnlyOwnerSee.
[edit] SetOwnerNoSee
Changes the value of bOwnerNoSee.
[edit] SetPhysMaterialOverride
Changes the current PhysMaterialOverride for this component. Note that if physics is already running on this component, this will _not_ alter its mass/inertia etc, it will only change its surface properties like friction and the damping.
[edit] SetRBAngularVelocity
Set the angular velocity of the rigid body physics of this PrimitiveComponent. If no rigid-body physics is active, will do nothing. In the case of a SkeletalMeshComponent will affect all bones - and will apply the linear velocity necessary to get all bones to rotate around the root. This should be used cautiously - it may be better to use AddForce or AddImpulse.
Parameters:
- NewAngVel - New angular velocity to apply to physics.
- bAddToCurrent - If true, NewAngVel is added to the existing velocity of the body.
[edit] SetRBChannel
Changes the rigid-body channel that this object is defined in.
[edit] SetRBCollidesWithChannel
Changes a member of the RBCollideWithChannels container for this PrimitiveComponent.
Parameters:
- bNewCollides - whether or not to collide with passed in channel
[edit] SetRBDominanceGroup
Used for creating one-way physics interactions.
See: RBDominanceGroup
[edit] SetRBLinearVelocity
Set the linear velocity of the rigid body physics of this PrimitiveComponent. If no rigid-body physics is active, will do nothing. In the case of a SkeletalMeshComponent will affect all bones. This should be used cautiously - it may be better to use AddForce or AddImpulse.
Parameters:
- NewVel - New linear velocity to apply to physics.
- bAddToCurrent - If true, NewVel is added to the existing velocity of the body.
[edit] SetRBPosition
Called if you want to move the physics of a component which has dynamics running (ie actor is in PHYS_RigidBody). Be careful calling this when this is jointed to something else, or when it does not fit in the destination (no checking is done).
Parameters:
- NewPos - new position of the body
- BoneName - SkeletalMeshComponent only) if specified, the bone to change position of if not specified for a SkeletalMeshComponent, all bodies are moved by the delta between the desired location and that of the root body.
[edit] SetRBRotation
Called if you want to rotate the physics of a component which has dynamics running (ie actor is in PHYS_RigidBody).
Parameters:
- NewRot - new rotation of the body
- BoneName - SkeletalMeshComponent only) if specified, the bone to change rotation of if not specified for a SkeletalMeshComponent, all bodies are moved by the delta between the desired rotation and that of the root body.
[edit] SetRotation
[edit] SetScale
[edit] SetScale3D
[edit] SetShadowParent
Changes the value of ShadowParent.
Parameters:
- NewShadowParent - The value to assign to ShadowParent.
[edit] SetTraceBlocking
[edit] SetTranslation
[edit] SetViewOwnerDepthPriorityGroup
Changes the value of bUseViewOwnerDepthPriorityGroup and ViewOwnerDepthPriorityGroup.
Parameters:
- bNewUseViewOwnerDepthPriorityGroup - The value to assign to bUseViewOwnerDepthPriorityGroup.
- NewViewOwnerDepthPriorityGroup - The value to assign to ViewOwnerDepthPriorityGroup.
[edit] WakeRigidBody
Ensure simulation is running for this component. If a SkeletalMeshComponent and no BoneName is specified, will wake all bones in the PhysicsAsset.
