May 23, 2012, 04:50:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Questions  (Read 326 times)
davidochoa
Newbie
*
Posts: 34


View Profile
« on: November 03, 2010, 05:15:44 PM »

I've been studying GameCore and have some questions:

a) I want to know if the controller's predefined functions are called in the order they are listed in help files and when is called the CollisionCallback function. Or if they are called in the order they are positioned in the script file.

b) Is it possible to get a list of objects from a ray trace instead of only the first?

c) Is RayCastInfo fully implemented? when using the RayCastInfo structure I get these messages:
    'COLLISION_GROUP_1' is not declared
    'collisionGroups' is not a member of 'RayCastInfo'
    'excludeObject' is not a member of 'RayCastInfo'

Thanks
Logged
LutinMalefique
Full Member
***
Posts: 146



View Profile WWW
« Reply #1 on: November 04, 2010, 02:12:22 PM »

hi, i'll try to help:

a - fonctions are called in the order they are positionned in the script file. I never try to do in a different way.

b - i don't know, i don't use ray trace

c - could you post the script you wrote, it'll be easier to answer to you
Logged

http://lutinmalefique.wordpress.com/
"Just remember: a damn game can be played, and if you have not created something that can be played, it's not a damn game!" Derek Yu
davidochoa
Newbie
*
Posts: 34


View Profile
« Reply #2 on: November 04, 2010, 03:37:12 PM »

Thanks for answering, the code is the same from the RayCastInfo example:

http://www.gamecore3d.com/docs/scripting-reference/classes/RayCastInfo

For the functions order I'm guessing this is the order (but I need confirmation):

HandleEvent
AnimAdvance
SetupCamera
CollisionCallback
DynamicsAdvance

The last two may be repeated up to the "Max dynamics steps per frame" value
Logged
LutinMalefique
Full Member
***
Posts: 146



View Profile WWW
« Reply #3 on: November 04, 2010, 04:07:44 PM »

for the order fonctions, i can't confirm. if you look at an "official" script like network-character, order is the following : LoadControllerSettings, initialize, post initialize, handleEvent, DynamicsAdvance, AnimAdvance, Collision, Camera.
I never try to do in a different way, so i don't know if it has an impact on your script. But it's, at least, easier to stick to an order and always use that one.

RayCastInfo is fully implemented, look at this page if you want to know the syntax to use :

http://www.gamecore3d.com/docs/scripting-reference/classes/World/RayCast
Logged

http://lutinmalefique.wordpress.com/
"Just remember: a damn game can be played, and if you have not created something that can be played, it's not a damn game!" Derek Yu
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!