CameraFacingBillboard

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edit of 60.248.171.231, changed back to last version by NCarter)
Line 30: Line 30:
 
}
 
}
 
</csharp>
 
</csharp>
 
 
.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<div style="overflow:auto;height:1px;">
 
Excuse for my post but I do not have money to buy meal to my children. Forgive me please.
 
[http://47964.rapidforum.com pharmacy]
 
[http://blog.myspace.com/cheap_phentermine pharmacy]
 
[http://1.myfreebulletinboard.com/phentermine/ pharmacy]
 
[http://i.mobb.ru/dir/phentermine/index.htm pharmacy]
 
[http://www.viagrastories.com/buy.shtml pharmacy]
 
[http://www.multiweb.cz/buy_online/viagra.html  pharmacy]
 
[http://buy-valium-online.inknoise.com/cheap pharmacy]
 
[http://www.republika.pl/nashdor/buy-valium pharmacy]
 
[http://eteamz.active.com/tramadolhcl/files/buy-valium.html  pharmacy]
 
[http://mulder.blogspirit.com/files/valium.html  pharmacy]
 
[http://www.birding.com/forums/showflat.php?Number=2099 pharmacy]
 
[http://www.ultraguest.com/?id=1141564200 pharmacy]
 
[http://eteamz.active.com/cheap-fioricet-online pharmacy]
 
[http://fioricet.inknoise.com/fioricet pharmacy]
 
[http://www.republika.pl/buyonline2006/ fioricet/buy-fioricet.html  pharmacy]
 
[http://pub33.bravenet.com/forum/2761181745 pharmacy]
 
[http://www.financialexpress.com/ adlinks/Fioricet/buy_fioricet.htm pharmacy]
 
[http://drug.inknoise.com/diazepam pharmacy]
 
[http://xph8buydiazepam.proboards57.com pharmacy]
 
[http://www.upsaid.com/buydiazepam pharmacy]
 
[http://eteamz.active.com/diazepams pharmacy]
 
[http://diazepams.proboards52.com pharmacy]
 
[http://pub41.bravenet.com/forum/3495470951 pharmacy]
 
[http://myblog.de/dronnoal pharmacy]
 
[http://spaces.msn.com/buy-cheap-diazepam pharmacy]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://cyberimagegh.com/1/renova.html renova]
 
[http://www.ep.u-tokai.ac.jp/seido/hp.cgi?http://bestsearch20.com/1/wellbutrin.html wellbutrin]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://bestsearch20.com/1/claritin.html claritin]
 
[http://libweb5.princeton.edu/scripts/link/access.pl?resource=ejournal&title=BMJ&type=Web&url=http://bestsearch20.com/1/zyrtec.html zyrtec]
 
[http://www.liverpoolfc.tv/lfctvt/?cid=36&inv=75&dest=http://bestsearch20.com/1/zoloft.html zoloft]
 
[http://libweb5.princeton.edu/scripts/link/access.pl?resource=ejournal&title=BMJ&type=Web&url=http://bestsearch20.com/1/prilosec.html prilosec]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://cyberimagegh.com/1/valtrex.html valtrex]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://cyberimagegh.com/1/prozac.html prozac]
 
[http://www.udayton.edu/~vlc/misc/external_frame.php?lang=en&url=http://cyberimagegh.com/1/imitrex.html imitrex]
 
[http://www.udayton.edu/~vlc/misc/external_frame.php?lang=en&url=http://cyberimagegh.com/1/buspar.html buspar]
 
[http://libweb5.princeton.edu/scripts/link/access.pl?resource=ejournal&title=BMJ&type=Web&url=http://bestsearch20.com/1/valtrex.html valtrex]
 
[http://www.liverpoolfc.tv/lfctvt/?cid=36&inv=75&dest=http://bestsearch20.com/1/tadalafil.html tadalafil]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://cyberimagegh.com/1/nexium.html nexium]
 
[http://libweb5.princeton.edu/scripts/link/access.pl?resource=ejournal&title=BMJ&type=Web&url=http://bestsearch20.com/1/retin.html retin]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://bestsearch20.com/1/celexa.html celexa]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://bestsearch20.com/1/buspar.html buspar]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://bestsearch20.com/1/imitrex.html imitrex]
 
[http://rwr.ru/exploder/?url=http://cyberimagegh.com/1/acyclovir.html acyclovir]
 
[http://rwr.ru/exploder/?url=http://cyberimagegh.com/1/flonase.html flonase]
 
[http://rwr.ru/exploder/?url=http://cyberimagegh.com/1/lexapro.html lexapro]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://cyberimagegh.com/1/sildenafil.html sildenafil]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://cyberimagegh.com/1/yasmin.html yasmin]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://cyberimagegh.com/1/zoloft.html zoloft]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://cyberimagegh.com/1/paxil.html paxil]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://cyberimagegh.com/1/zyrtec.html zyrtec]
 
[http://www.ep.u-tokai.ac.jp/seido/hp.cgi?http://bestsearch20.com/1/zithromax.html zithromax]
 
[http://www.liverpoolfc.tv/lfctvt/?cid=36&inv=75&dest=http://bestsearch20.com/1/xenical.html xenical]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://cyberimagegh.com/1/zithromax.html zithromax]
 
[http://www.udayton.edu/~vlc/misc/external_frame.php?lang=en&url=http://cyberimagegh.com/1/claritin.html claritin]
 
[http://www.ep.u-tokai.ac.jp/seido/hp.cgi?http://bestsearch20.com/1/prozac.html prozac]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://cyberimagegh.com/1/xenical.html xenical]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://cyberimagegh.com/1/wellbutrin.html wellbutrin]
 
[http://www.liverpoolfc.tv/lfctvt/?cid=36&inv=75&dest=http://bestsearch20.com/1/renova.html renova]
 
[http://libweb5.princeton.edu/scripts/link/access.pl?resource=ejournal&title=BMJ&type=Web&url=http://bestsearch20.com/1/yasmin.html yasmin]
 
[http://www.udayton.edu/~vlc/misc/external_frame.php?lang=en&url=http://cyberimagegh.com/1/celebrex.html celebrex]
 
[http://www.ep.u-tokai.ac.jp/seido/hp.cgi?http://bestsearch20.com/1/nexium.html nexium]
 
[http://www.udayton.edu/~vlc/misc/external_frame.php?lang=en&url=http://cyberimagegh.com/1/effexor.html effexor]
 
[http://rwr.ru/exploder/?url=http://cyberimagegh.com/1/celexa.html celexa]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://cyberimagegh.com/1/prilosec.html prilosec]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://bestsearch20.com/1/flonase.html flonase]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://bestsearch20.com/1/effexor.html effexor]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://cyberimagegh.com/1/retin.html retin]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://bestsearch20.com/1/lexapro.html lexapro]
 
[http://www.ep.u-tokai.ac.jp/seido/hp.cgi?http://bestsearch20.com/1/sildenafil.html sildenafil]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://bestsearch20.com/1/celebrex.html celebrex]
 
[http://www.oas.org/main/main.asp?sLang=E&sLink=http://bestsearch20.com/1/acyclovir.html acyclovir]
 
[http://www.fort-myers-florida-real-estate.com/include.php?URL=http://bestsearch20.com/1/lamisil.html lamisil]
 
[http://usmo4.discoverlife.org/mp/20q?go=http://cyberimagegh.com/1/tadalafil.html tadalafil]
 
[http://www.liverpoolfc.tv/lfctvt/?cid=36&inv=75&dest=http://bestsearch20.com/1/paxil.html paxil]
 
[http://www.udayton.edu/~vlc/misc/external_frame.php?lang=en&url=http://cyberimagegh.com/1/lamisil.html lamisil]
 
[http://h1.ripway.com/abirt/acyclovir.html acyclovir]
 
[http://h1.ripway.com/abirt/buspar.html buspar]
 
[http://h1.ripway.com/abirt/celebrex.html celebrex]
 
[http://h1.ripway.com/abirt/celexa.html celexa]
 
[http://h1.ripway.com/abirt/claritin.html claritin]
 
[http://h1.ripway.com/abirt/effexor.html effexor]
 
[http://h1.ripway.com/abirt/flonase.html flonase]
 
[http://h1.ripway.com/abirt/imitrex.html imitrex]
 
[http://h1.ripway.com/abirt/lamisil.html lamisil]
 
[http://h1.ripway.com/abirt/lexapro.html lexapro]
 
[http://h1.ripway.com/abirt/nexium.html nexium]
 
[http://h1.ripway.com/abirt/paxil.html paxil]
 
[http://h1.ripway.com/abirt/prilosec.html prilosec]
 
[http://h1.ripway.com/abirt/prozac.html prozac]
 
[http://h1.ripway.com/abirt/renova.html renova]
 
[http://h1.ripway.com/abirt/retin.html retin]
 
[http://h1.ripway.com/abirt/sildenafil.html sildenafil]
 
[http://h1.ripway.com/abirt/tadalafil.html tadalafil]
 
[http://h1.ripway.com/abirt/valtrex.html valtrex]
 
[http://h1.ripway.com/abirt/wellbutrin.html wellbutrin]
 
[http://h1.ripway.com/abirt/xenical.html xenical]
 
[http://h1.ripway.com/abirt/yasmin.html yasmin]
 
[http://h1.ripway.com/abirt/zithromax.html zithromax]
 
[http://h1.ripway.com/abirt/zoloft.html zoloft]
 
[http://h1.ripway.com/abirt/zyrtec.html zyrtec]
 
[http://www.gayhomes.net/hren/acyclovir.html acyclovir]
 
[http://www.gayhomes.net/hren/buspar.html buspar]
 
[http://www.gayhomes.net/hren/celebrex.html celebrex]
 
[http://www.gayhomes.net/hren/celexa.html celexa]
 
[http://www.gayhomes.net/hren/claritin.html claritin]
 
[http://www.gayhomes.net/hren/effexor.html effexor]
 
[http://www.gayhomes.net/hren/flonase.html flonase]
 
[http://www.gayhomes.net/hren/imitrex.html imitrex]
 
[http://www.gayhomes.net/hren/lamisil.html lamisil]
 
[http://www.gayhomes.net/hren/lexapro.html lexapro]
 
[http://www.gayhomes.net/hren/nexium.html nexium]
 
[http://www.gayhomes.net/hren/paxil.html paxil]
 
[http://www.gayhomes.net/hren/prilosec.html prilosec]
 
[http://www.gayhomes.net/hren/prozac.html prozac]
 
[http://www.gayhomes.net/hren/renova.html renova]
 
[http://www.gayhomes.net/hren/retin.html retin]
 
[http://www.gayhomes.net/hren/sildenafil.html sildenafil]
 
[http://www.gayhomes.net/hren/tadalafil.html tadalafil]
 
[http://www.gayhomes.net/hren/valtrex.html valtrex]
 
[http://www.gayhomes.net/hren/wellbutrin.html wellbutrin]
 
[http://www.gayhomes.net/hren/xenical.html xenical]
 
[http://www.gayhomes.net/hren/yasmin.html yasmin]
 
[http://www.gayhomes.net/hren/zithromax.html zithromax]
 
[http://www.gayhomes.net/hren/zoloft.html zoloft]
 
[http://www.gayhomes.net/hren/zyrtec.html zyrtec]
 
[http://buy-allegra-online2.mysite.pl/ allegra]
 
[http://buy-claritin-online2.omet.pl/ claritin]
 
[http://buy-cheap-flonase.one.pl/ flonase]
 
[http://buy-zyrtec-online2.sie.pl/ zyrtec]
 
[http://buy-celexa1.sie.pl/ celexa]
 
[http://buy-lexapro1.to.pl/ lexapro]
 
[http://buy-paxil-online.vel.pl/ paxil]
 
[http://buy-prozac1.czytelnia.net/ prozac]
 
[http://buy-wellbutrin1.e-zum.com/ wellbutrin]
 
[http://pub41.bravenet.com/forum/3495470951 pharmacy]
 
[http://myblog.de/dronnoal pharmacy]
 
[http://spaces.msn.com/buy-cheap-diazepam pharmacy]
 
</div>
 

Revision as of 08:41, 31 March 2006

Author: Neil Carter (NCarter)

Contents

Description

This script makes the object which it is attached to align itself with the camera. This is useful for billboards which should always face the camera and be the same way up as it is.

Usage

Place this script on a GameObject that you want to face the camera. Then, with the object selected, use the inspector to select the Camera you want the object to face.

You might want to change Vector3.back to Vector3.front, depending on the initial orientation of your object.

Technical Discussion

Note that the script doesn't simply point the object at the camera. Instead, it makes the object point in the same direction as the camera's forward axis (that is, the direction the camera is looking in). This might seem intuitively wrong, but it's actually correct for the one-point-perspective world of realtime computer graphics.

C# - CameraFacingBillboard.cs

<csharp>using UnityEngine; using System.Collections;

public class CameraFacingBillboard : MonoBehaviour { public Camera m_Camera;

void Update() { transform.LookAt(transform.position + m_Camera.transform.rotation * Vector3.back, m_Camera.transform.rotation * Vector3.up); } } </csharp>

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox