Crystal Space
Welcome, Guest. Please login or register.
September 02, 2014, 02:17:47 pm

Login with username, password and session length
Search:     Advanced search
9009 Posts in 2043 Topics by 8378 Members
Latest Member: Gwenlode
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  portals
« previous next »
Pages: [1] Print
Author Topic: portals  (Read 2394 times)
koocake
Jr. Member
**
Posts: 54


View Profile
« on: May 12, 2006, 01:29:31 pm »

hi there

I see how to create sectors, and specify the destination sector, but what about the actual destination position? How does the portal know where to position the player in the destination sector?

regards
Kate

ok - ive done this by using SetWarp();
« Last Edit: May 12, 2006, 01:49:49 pm by koocake » Logged
koocake
Jr. Member
**
Posts: 54


View Profile
« Reply #1 on: May 12, 2006, 01:52:37 pm »

I have another question - what are the

csVector3 *       vertices,
int     num_vertices,

for in the arguments of Engine->CreatePortal()? also how do i get the number of vertices? is this something can get from the mesh?

regards,
Kate
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #2 on: May 12, 2006, 02:16:06 pm »

The position will be the same as in the source destination. So if the portal starts at 10,2,3 it will arrive at 10,2,3 unless you have a space warping transform associated with the portal.

The vertices of the portal represent the portal polygon. i.e. the area of the portal.

Greetings,
Logged
koocake
Jr. Member
**
Posts: 54


View Profile
« Reply #3 on: May 12, 2006, 04:08:52 pm »

is there any way i can get the vertex information from the mesh?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #4 on: May 12, 2006, 04:18:48 pm »

is there any way i can get the vertex information from the mesh?

What mesh? What do you want to do exactly?

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.429 seconds with 18 queries.