playMaker

Author Topic: Box cast  (Read 2510 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Box cast
« on: February 14, 2016, 02:05:28 AM »
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Ubik3D

  • Playmaker Newbie
  • *
  • Posts: 22
    • www.hypnorama.se
Re: Box cast
« Reply #1 on: April 06, 2019, 09:15:17 AM »
Hey mDotStrange! @mdotstrange

I am creating a scene for an art piece I'm working on, and I'm trying to use this boxcast.

The script is working, but for some reason, the script doesn't seem to make any good use of the "orientation" data. It just casts a box with 0, 0, 0 orientation no matter what I put into the orientation field.

I'm trying to find the bug but haven't yet. Can you perhaps help?

UPDATE: I found the error! In void DoBoxcast, the orientation is stated as orientation.Value = Quaternion.identity. If I removed the last part (= Quaternion.identity) the script worked!

Btw, I'm a fan of your art!

Best,
Daniel
« Last Edit: April 06, 2019, 09:42:02 AM by Ubik3D »