Align and size a plane on a face
Hey ! I need help for script writting , I'm bad at scripting and I need a simple script.
This script say :
On click , on the face, place a plane on this face with same dimension.
example on screen :
http://img.funky-emu.net/uploads/2209102.jpg
http://img.funky-emu.net/uploads/2209103.jpg
Thx for you help and sorry for my bad english
Regards
Comments
Up !
Up !
Reply
Yeah !!!! It work perfect but I can't select all face and apply on each face , I have to do it one by one face. :)
Thanks you very much for your help !
Planes over faces
This is not perfect solution but works for this case
bga
Reply
Yeah good joob ! it work perfectly, a last thing =)
For a simple object like a box it's perfectly but for a complex model we need many many many plane exemple for my bridge.
http://img.funky-emu.net/uploads/231840Picture.jpg
In fact When a player get in touch with a plane the plane say : stop can't go here.
A exemple of one of my creation with this plane (3hours for do the plane collider)
http://img.funky-emu.net/uploads/232536Picture2.png
or other exemple of collider workable
http://img.funky-emu.net/uploads/234124PICTURE4.png
Can we make less plane for the same thing?
last thing look this picture : I know the are a rotation problem :
http://img.funky-emu.net/uploads/234124PICTURE4.png
Regards
Thanks you very very very much for you help barigazy
similar method using UP VECTOR
bga
Reply
Thanks barigazy. but I need a plane because it must be a standart primitive, because I use this plane as collider for a game.
i start new code but you need
i start new code but you need to adjust a bit by yourselp.
a little homework it does not hurt
;)
bga
Why you need a plain.Why
Why you need a plain.Why don't you just detach selected face as clone
bga