当前位置: 代码迷 >> 综合 >> UE4虚幻,C++脚本控制Actor移动是控制什么
  详细解决方案

UE4虚幻,C++脚本控制Actor移动是控制什么

热度:99   发布时间:2024-02-27 03:21:20.0
UE4中控制Actor就是控制RootComponent根节点,比如RootComponent根节点下面有USpringArmComponent弹簧臂节点。USpringArmComponent->GetActorLocation();   //获取弹簧臂节点的Location坐标位置
GetActorLocation();   //获取当前Actor也就是RootComponent根节点的Location坐标位置如果把USpringArmComponent设置为RootComponent根节点,那么USpringArmComponent->GetActorLocation();   //获取的也是RootComponent根节点的Location坐标位置SetActorLocation(NewLocation)      //设置当前Actor也就是RootComponent根节点的Location坐标位置