Hi,
i’m new there and I’d like to ask something about projectiles and ‘normals’ orientation.
Here is the problem :I’ve made a basic character that is able to send projectiles.
When the projectile touches a wall or the ground (‘wall’ or ‘ground’ properties), an object is added through Python.
Actually, this object is just a plane. I may replace it with a more complex object later.
Problem 1 :
- I’d like to set the orientation of this plane toward (is that the good word, I can’t speak english anymore
) the wall ‘normals’ direction.
How would you get that information?
And how would you apply it to the plane?
I’ve made a quick drawing :
Problem 2 :
How can i record the object position just before it touches the wall?
I use a ‘collision’ sensor.
I want that variable because I’d like my plane (the yellow teleporter on the picture) to be a little away from the wall (to avoid collision problems).
Problem 3 :
- If those yellow zones were portals, how would you add an object there and avoid the problem of collision with the wall?
Ex : My character enters a teleporter entry and, then, appears close to the wall.
(Even if I find a solution with my problem 2, i may have an issue with big meshes I think)
I’ve read a lot of threads about portals, but I think that my problems are different (or I misread).
Ah, I’d prefer a Python solution
Thank you for your help.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Scripts submitted by BlenderArtists Users
13.01.09
PhilB
Projectile_portals.blend
12.12.08
Almost
portal_placement.blend
19.12.08
Bluesocarrot
projectiles_normals.blend
And much help from all the people here.