playMaker

Author Topic: Problem with raycast normal  (Read 1429 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4611
    • View Profile
    • jinxtergames
Re: Problem with raycast normal
« Reply #15 on: September 26, 2018, 09:45:10 AM »
Hi.
It's not one of my best video's but it explains how to do :)

« Last Edit: September 28, 2018, 09:46:58 PM by djaydino »

Franck

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Problem with raycast normal
« Reply #16 on: September 27, 2018, 01:52:37 AM »
wow thanks djaydino it works.

You win a subscriber to your youtube channel!

I use with that the "create object" action because with pooler it is so complicated for my shotgun. Indeed I have 12 raycasts in my FSM to spawn 12 bullet holes and with Pooler I will have too many states...lol

However, Is there a way to decal the object (bullet hole) a bit because it clip when it spawn on the objects?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4611
    • View Profile
    • jinxtergames
Re: Problem with raycast normal
« Reply #17 on: September 27, 2018, 02:59:59 AM »
Hi.
Aw i forget to show the bullet hole prefab on the video....

I have an empty object and in there i have a plane (child) with the bullet hole and i have the (i believe) z position set to 0.0001 and x rotation to 90

Franck

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Problem with raycast normal
« Reply #18 on: September 27, 2018, 03:32:45 AM »
Oh yep, got it !
Thanks a lot djaydino :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4611
    • View Profile
    • jinxtergames
Re: Problem with raycast normal
« Reply #19 on: September 27, 2018, 07:36:25 AM »
Hi.
You can also use an offset if needed, just add these 2 actions on the top of the 'Spawn Bullet Hole' state :


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4611
    • View Profile
    • jinxtergames
Re: Problem with raycast normal
« Reply #20 on: September 28, 2018, 09:47:46 PM »
Hi.
Uploaded video link with a new one (including offset info)


Franck

  • Junior Playmaker
  • **
  • Posts: 83
    • View Profile
Re: Problem with raycast normal
« Reply #21 on: September 29, 2018, 07:41:27 AM »
Yep I saw, I subscribed to your channel :)