Download

Spawning actors at controller transforms

pretty simple. I want to spawn an actor at my controller, facing the same way my controller is. I’m sure it’s pretty easy, but when I did:

  1. got 2 spawn actor from class’s, one for each controller action
  2. grabbed the variables left controller and right controller
  3. got the transforms of both
    and 4. plugged the transforms into the corresponding spawn actor

The actor would just spawn on the floor. I tried get WORLD transform with “scene” or whatever, but that didn’t work either. Any help is appreciated.

If you are using a setup like the VR Template, the actors themselves have the transform of the tracking origin. You’ll need to get the transform of the actual MotionControllerComponent inside the actor instead with something like GetWorldTransform(MotionController).