BufferGeometry
Object3D
Raycaster
Camera
CubeCamera
PerspectiveCamera
OrthographicCamera
StereoCamera
Clock
Curve
CurvePath
Path
Shape
ShapePath
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
HemisphereLightHelper
PlaneHelper
PointLightHelper
SkeletonHelper
SpotLightHelper
Light
PointLight
RectAreaLight
SpotLight
DirectionalLight
HemisphereLight
LightShadow
PointLightShadow
AnimationLoader
AudioLoader
BufferGeometryLoader
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
Loader
LoaderUtils
MaterialLoader
ObjectLoader
TextureLoader
LoadingManager
Material
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
keyframeTrack
PropertyBinding
PropertyMixer
BooleanKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
Audio
AudioAnalyser
AudioContext
AudioListener
PositionalAudio

AnimationAction.getMixer()

描述

AnimationAction.getMixer()three.js 库中 AnimationAction 类的方法之一。该方法用于获取 AnimationMixer 实例,从而可以对该 AnimationAction 对象进行混合操作。

语法

getMixer(): AnimationMixer;

参数

返回值

返回一个 AnimationMixer 实例,用于混合该 AnimationAction 对象的帧数据。

示例

// 创建一个 AnimationMixer 实例
const mixer = new THREE.AnimationMixer(object);

// 创建 AnimationAction 实例
const action = mixer.clipAction(animationClip);

// 获取 AnimationMixer 实例
const animationMixer = action.getMixer();