Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Camera collision #140764
07/12/07 20:05
07/12/07 20:05
Joined: Sep 2006
Posts: 188
Latvia
MDI Offline OP
Member
MDI  Offline OP
Member

Joined: Sep 2006
Posts: 188
Latvia
Im trying make to camera good collision! But anyways im always getting bugs! And i want see now other peoples ideas!


Latvija rullē
Re: Camera collision [Re: MDI] #140765
07/12/07 20:21
07/12/07 20:21
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Create an object like a box or something. Move the box instead of the camera. Write in the main loop of the box's action something like:

Code:

vec_set(camera.x,my.x);
vec_set(camera.pan,my.pan);




Always learn from history, to be sure you make the same mistakes again...
Camera collision [Re: Uhrwerk] #140766
07/12/07 20:27
07/12/07 20:27
Joined: Sep 2006
Posts: 188
Latvia
MDI Offline OP
Member
MDI  Offline OP
Member

Joined: Sep 2006
Posts: 188
Latvia
Ok! Atleast! After 2 days with bugs i try something absolutely new and turn off camera.genius!
Now i have question - what realy do this camera.genius?


Latvija rullē
Re: Camera collision [Re: MDI] #140767
07/12/07 21:07
07/12/07 21:07
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
it makes you entity atached to your camera invisible for the camera

i search it up for you

view.genius
Player entity that is attached to the view. Used for first person and third person games. This entity will be invisible if the view is within its bounds. All entities that have their parent pointer set to the genius will then be invisible also. If the view is outside the entities' bounds, the entity and its childs become visible, but any object outside the entities visibility range is suppressed by the BSP tree process. By setting GENIUS to NULL, no entity is attached to the view.
Type:
ENTITY*
Example:
camera.genius = me; // current entity invisible inside view range


"empty"

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1