ImpactOTheGame / DemoSquad

0 stars 0 forks source link

Building - Auto Transparent #18

Closed Pettson86 closed 11 years ago

Pettson86 commented 11 years ago

Make buildings become gradually transparent when the vehicle is behind them.

Pettson86 commented 11 years ago

Should work now. The renderers that will be transparent is set to a different layer to ignore all layers apart from this in the raycast. Maybe add a solution to make all renderers transparent.

Pettson86 commented 11 years ago

Bug Seems that the buildings can get transparent even if the player is in front of them. Think the RaycastAll should be switched to simply Raycast

Vippe commented 11 years ago

How about not using a fixed length on the raycast? :P

Vippe commented 11 years ago

Fixed