15 geom::Location Actor::GetLocation()
const {
20 geom::Transform Actor::GetTransform()
const {
25 geom::Vector3D Actor::GetVelocity()
const {
31 geom::Vector3D Actor::GetAngularVelocity()
const {
36 geom::Vector3D Actor::GetAcceleration()
const {
41 geom::Transform Actor::GetComponentWorldTransform(
const std::string componentName)
const {
42 return GetEpisode().
Lock()->GetActorComponentWorldTransform(*
this, componentName);
45 geom::Transform Actor::GetComponentRelativeTransform(
const std::string componentName)
const {
46 return GetEpisode().
Lock()->GetActorComponentRelativeTransform(*
this, componentName);
49 std::vector<geom::Transform> Actor::GetBoneWorldTransforms()
const {
53 std::vector<geom::Transform> Actor::GetBoneRelativeTransforms()
const {
57 std::vector<std::string> Actor::GetComponentNames()
const {
61 std::vector<std::string> Actor::GetBoneNames()
const {
65 std::vector<geom::Transform> Actor::GetSocketWorldTransforms()
const {
69 std::vector<geom::Transform> Actor::GetSocketRelativeTransforms()
const {
70 return GetEpisode().
Lock()->GetActorSocketRelativeTransforms(*
this);
73 std::vector<std::string> Actor::GetSocketNames()
const {
80 void Actor::SetLocation(
const geom::Location &location) {
87 void Actor::SetTransform(
const geom::Transform &transform) {
94 void Actor::SetTargetVelocity(
const geom::Vector3D &vector) {
101 void Actor::SetTargetAngularVelocity(
const geom::Vector3D &vector) {
102 GetEpisode().
Lock()->SetActorTargetAngularVelocity(*
this, vector);
108 void Actor::EnableConstantVelocity(
const geom::Vector3D &vector) {
114 void Actor::DisableConstantVelocity() {
121 void Actor::AddImpulse(
const geom::Vector3D &impulse) {
129 void Actor::AddImpulse(
const geom::Vector3D &impulse,
const geom::Vector3D &location) {
137 void Actor::AddForce(
const geom::Vector3D &force) {
145 void Actor::AddForce(
const geom::Vector3D &force,
const geom::Vector3D &location) {
152 void Actor::AddAngularImpulse(
const geom::Vector3D &vector) {
159 void Actor::AddTorque(
const geom::Vector3D &torque) {
166 void Actor::SetSimulatePhysics(
const bool enabled) {
173 void Actor::SetCollisions(
const bool enabled) {
179 void Actor::SetActorDead() {
186 void Actor::SetEnableGravity(
const bool enabled) {
198 bool Actor::Destroy() {
209 "attempting to destroy an actor that is already dead:",
rpc::ActorState GetActorState() const
EpisodeProxy & GetEpisode()
const std::string & GetDisplayId() const
SharedPtrType Lock() const
与 TryLock 相同,但永远不会返回 nullptr。
static void log_warning(Args &&... args)