Announcement

Collapse
No announcement yet.

Creating a Blueprint with the option to rotate around 3 different points?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Hi, you can do it but is a bit complicated.

    Make 2 scene component in your willchair, and place them on the R-wheel and L-wheel, Name it likewise.

    To rotate on a wheel you have to.
    Get the vector between chair position and R_wheel. (position vector - position Vector).
    Lets call this DIFF_Vecctor.

    Lets say you will rotate od 5 radius.
    You have to take the World_position_of_R_Wheel and add (DIFF_Vector rotated by 5 radius) There is a node called RotateVector to do this.

    To check If you have done right use the Draw debug sphere.
    Check that drawing R_wheel + DIFF_vector , you have the sphere in the middle o the chair.
    Check that World_position_of_R_Wheel + (DIFF_Vector rotated by 5 radius) is a little different position next the midddle chair.

    Ok , now
    Set the chair position to World_position_of_R_Wheel + (DIFF_Vector rotated by 5 radius)
    and rotate the Chair actor of 5 radius.

    You can rotate around any point following these steps.

    Leave a comment:


  • Creating a Blueprint with the option to rotate around 3 different points?

    Basically I'm trying to create a vehicle similar to a wheelchair. I want it to be able to rotate around the center (one wheel going forward, one wheel going back), rotate round the right wheel (left wheel is going forward/back while the right isn't moving), and rotate around the left wheel. In the future I'd love to be able to blend between the rotate points, but for now I'd be happy with just the 3 points of rotation. Is there any easy way to specify where the center of rotation is and change it?
Working...
X