#(flimsynimsy) how to rotate points_around_y

21 messages · Page 1 of 1 (latest)

acoustic veldt
#

i have a polygonial item display and im using the polygon areaobject for the first time, but the polygon doesn't line up with the item display, so id like to rotate the generated circle (that has 16 sides) (i can't rotate the model)

magic geyserBOT
#

(flimsynimsy) how to rotate points_around_y

magic geyserBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

acoustic veldt
#

i want the flames to be in the edges

#

/ex playeffect effect:FLAME offset:0 visibility:1000 at:<location[75.5,100,55.5,ft24].points_around_y[radius=25;points=16].to_polygon.with_y_min[0].with_y_max[300].outline> quantity:1

#

this is the command im running

limpid fossil
#

the actual flames are correct, just not rotated properly?

limpid fossil
#

this is a probably horribly done impl that seems to work

RotatePoints:
  type: task
  script:
  - define loc <player.location>
  - define points <[loc].points_around_y[radius=3;points=4]>
  - foreach <[points]> as:point:
    - define vector <[point].sub[<[loc]>]>
    - define vector <[vector].rotate_around_y[<element[0].to_radians>]>
    - playeffect at:<[loc].add[<[vector]>]> effect:flame offset:0
  - wait 5t
  - foreach <[points]> as:point:
    - define vector <[point].sub[<[loc]>]>
    - define vector <[vector].rotate_around_y[<element[45].to_radians>]>
    - playeffect at:<[loc].add[<[vector]>]> effect:soul_fire_flame offset:0
#

get the vector between the center and the point, then rotate it around y lmao

#
RotatePoints:
  type: task
  script:
  - define loc <player.location.above[0.2]>
  - define points <[loc].points_around_y[radius=3;points=4]>
  - define rotatedPoints <list>
  - foreach <[points]> as:point:
    - define vector <[point].sub[<[loc]>]>
    - define vector <[vector].rotate_around_y[<element[45].to_radians>]>
    - define rotatedPoints:->:<[loc].add[<[vector]>]>
  - playeffect at:<[rotatedPoints]> effect:soul_fire_flame offset:0
acoustic veldt
limpid fossil
#

Lmao

#

Could use parse I guess?

acoustic veldt
#

id rather just do this lol

limpid fossil
#

Don’t forget to close?

abstract tree
acoustic veldt
#

sounds good, tysm ricky