playMaker

Author Topic: Box cast  (Read 911 times)

mdotstrange

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

Ubik3D

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
    • www.hypnorama.se
Re: Box cast
« Reply #1 on: April 06, 2019, 06: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, 06:42:02 AM by Ubik3D »