I am working on Speech Bubbles, selection planes, and hovering names.
Currently, I am working on the selection planes.
I am using a single quad plane with a texture assigned.
I plan to get the angle of the contact with the ground like so:
- Cast ray directly down Y axis to find ground, if any.
- Create 4 vectors that make a small quad shape around the point found in last step.
- Perform ray casting and averaging as shown in the car example.
- Set rotation matrix of the plane.
I will post screenshots in a little while;)
EDIT:
Anyone got a better idea about this?
I am referring to a green circle I wish to draw at the feet of a selected player model.