XNA Game Development Forums
2012/05/18 05:52:53 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: How to update position of meshes in Hazy Mind Demo project?  (Read 1974 times)
Trefall
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: 2007/02/12 14:10:06 »

Hello, so far I've learned a lot from the HM tutorials. Great work!

I'm having problems understanding this one bit of the architecture of the engine though, or perhaps I'm missing something.

If I understand it correctly, the Hazy Mind Engine project is supposed to hold core functionality and object definitions, while the Hazy Mind Demo project uses the HMEngine as a resource to derive it's functionality. So what I would want is to have the possibility to perform updates every frame in the HMDemo project to update the position and orientation of a mesh for instance.

I understand that I could do this by making a class that inherits from HMMesh for example, but I have a List of objects, who's updates affect each other, and so I was hoping to thave an update function in the HMDemo.cs main file... I'm fairly new to C#, so I've had trouble finding a solution to this... I'd be greatful for any help offered!

Logged
Robin Sarac
Newbie
*
Offline Offline

Posts: 9


View Profile
« Reply #1 on: 2007/03/12 11:27:26 »

Something (input, game logic) has to update the position of a given object in order for it, and the mesh representing the object, to move.

Have you read the Input tutorial?  It derives the input component from a GameComponent, then registers it with the game.  game components have override-able methods that are called at certain points in the game (e.g. Initialize(), Update()).  You could derive an update method from GameComponent and then put your logic to deal with object movement in there. That would keep game logic out of the engine project.  Or you could add to the input component and have input move your objects around.

I haven't gotten past tutorial 6 yet as I've read each one several times, but this is one idea.
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Hazy Mind 3D Engine Hazy Mind 3D Engine mikeschuld 0 2172 Last post 2006/07/22 15:02:05
by mikeschuld
Hazy Mind Scene Editor Hazy Mind Scene Editor mikeschuld 5 4604 Last post 2006/11/10 23:34:51
by AndroiD
Cannot open project tutorial Hazy Mind XNA Engine kebaboom 9 3172 Last post 2006/11/10 19:44:33
by mikeschuld
The Hazy Mind - Awesome Resource! General Discussion jadams 2 1778 Last post 2006/11/16 11:41:21
by Wasted
Project Hoshimi General Discussion Nemo Krad 2 1276 Last post 2007/01/25 04:20:57
by h4rdc0m
Hazy Mind 3D Engine tutorials Hazy Mind 3D Engine justus 1 2001 Last post 2007/02/13 08:19:03
by ericc59
why is the Hazy Mind engine designed like this? General Discussion dmf 3 2004 Last post 2007/02/16 09:10:48
by DaphydTheBard
Incoming XNA GSE Update General Discussion Chr0n1x 6 2369 Last post 2007/04/06 22:59:52
by Tiago
Tutorial 4 - Why calling the Update-Method? Hazy Mind XNA Engine M-Nasty 2 1864 Last post 2007/08/14 21:44:08
by mikeschuld
Hazy Mind 3D Engine Hazy Mind 3D Engine precious roy 2 4023 Last post 2007/08/28 06:15:22
by precious roy
Running Hazy Mind engine on another machine Hazy Mind XNA Engine Silvo 2 1786 Last post 2008/04/12 22:34:29
by Silvo
Hazy Mind Engine - Re Born General Discussion Nemo Krad 5 2549 Last post 2008/12/20 10:28:38
by mikeschuld
Please write a tutorial: XNA+WinForm in Hazy Mind General Discussion Francisk 4 3270 Last post 2009/12/14 11:45:40
by Mikeske
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 1.563 seconds with 19 queries.