Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: Dev_Sebas on July 15, 2012, 01:52:49 PM
-
Possibly to get normal of the hited face of the object
Does Playmaker support this?And can anybody make this action?
Thanks
Hope you think about this.
Bye
-
Hi,
what do you mean by hit? a raycast? a collision?
bye,
Jean
-
Hi Jean
By a raycast.
-
Hi,
use the rayCast info, what you want is the "normal" property.
https://hutonggames.fogbugz.com/default.asp?W491 (https://hutonggames.fogbugz.com/default.asp?W491)
bye,
Jean
-
I´m using that.But look.
When I shot I will create a cube.But I normally don´t have the cube parallel to hited face.My cube never rotates.
But I can see the value of rotation vector.
The normal vector3 is for apply on create object rotation.No?
Bye
Thank you
-
hi,
Sorry, I am not following what you are saying, can you rephrase? cheers,
Jean
-
Sorry about that Jean.
Ok my main objective is set my holes parallel to face hited.
But in my case they aren´t making that.
-That is happening in my case.The bad image.
-That should happen.The good image.
How can I make this?You say that is with the normal vector and put it on rotation in create object action.Right?
-
Hi,
Ok, so yes, you need to use the normal that you find in that action, this is the right way. It is likely a problem with what you then do with that normal.
Have you checked the sample I did a long time ago, it features a dynamic ray casting with an object that conform to the normal of the face.
http://hutonggames.com/playmakerforum/index.php?topic=900.msg3781#msg3781 (http://hutonggames.com/playmakerforum/index.php?topic=900.msg3781#msg3781)
bye,
Jean
-
Hi Jean.
I´m gonna check it again for see if is everything is good.
-
Oh I forgot that!!
Damm I´m gonna implement it right now.
Bye
-
Humm ok ok this is great.Thank you a lot Jean. :D
Just a simple question.
Ray Cast should works with the mesh, not the mesh collider,right?
-
Humm ok ok this is great.Thank you a lot Jean. :D
Just a simple question.
Ray Cast should works with the mesh, not the mesh collider,right?
Sorry by questening this. Of course it works with mesh colliders.
Bye
Thank you a lot Jean