29 using ActorState::GetBoundingBox;
31 virtual ~Actor() =
default;
135 return Super::GetActorDescription();
void SetSimulatePhysics(bool enabled=true)
Enable or disable physics simulation on this actor.
void SetActorDead()
Set actor as dead and starts his life span.
rpc::ActorState GetActorState() const
geom::Vector3D GetAcceleration() const
Return the current 3D acceleration of the actor.
void SetCollisions(bool enabled=true)
Enable or disable collisions on this actor.
const auto & Serialize() const
void AddForce(const geom::Vector3D &force)
Add force to the actor at its center of mass.
This file contains definitions of common data structures used in traffic manager. ...
EpisodeProxy & GetEpisode()
void SetTransform(const geom::Transform &transform)
Teleport and rotate the actor to transform.
void AddAngularImpulse(const geom::Vector3D &vector)
Add angular impulse to the actor.
const std::string & GetDisplayId() const
void AddImpulse(const geom::Vector3D &vector)
Add impulse to the actor at its center of mass.
Used to initialize Actor classes.
#define LIBCARLA_INITIALIZE_LIFETIME_PROFILER(display_name)
virtual bool Destroy()
Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed...
geom::Vector3D GetAngularVelocity() const
Return the current 3D angular velocity of the actor.
geom::Transform GetTransform() const
Return the current transform of the actor.
void SetTargetAngularVelocity(const geom::Vector3D &vector)
Set the angular velocity of the actor before applying physics.
geom::Location GetLocation() const
Return the current location of the actor.
void SetLocation(const geom::Location &location)
Teleport the actor to location.
void SetTargetVelocity(const geom::Vector3D &vector)
Set the actor velocity before applying physics.
bool IsValid() const noexcept
Represents an actor in the simulation.
geom::Vector3D GetVelocity() const
Return the current 3D velocity of the actor.
void EnableConstantVelocity(const geom::Vector3D &vector)
Enable a constant velocity mode.
Actor(ActorInitializer init)
void SetEnableGravity(bool enabled=true)
Enable or disable gravity on this actor.
void AddTorque(const geom::Vector3D &vector)
Add a torque to the actor.
Internal state of an Actor.
void DisableConstantVelocity()
Disable the constant velocity mode.