Search found 3 matches

by mironcaius
Fri Oct 05, 2007 2:59 pm
Forum: Beginners Help
Topic: OnEvent problem
Replies: 1
Views: 274

OnEvent problem

So i added some code to mode a node in the OnEvent function, but my code cannot accept events on the same time, like when i push up and then left, and i dont undestand what i am doing wrong.
Here is a sample of the code:

bool CDemo::OnEvent(SEvent event)
{
if (!device)
return false;

if (event ...
by mironcaius
Fri Oct 05, 2007 2:41 pm
Forum: Beginners Help
Topic: I am getting quite aggravated here! [camera movement topic]
Replies: 8
Views: 687

I added this code to the onevent function in 16.Quake3MapShader but i cannot make it to work with 2 keys pressed. How can i do this , how does the camera work with 2 keys pressed and a node no ??
by mironcaius
Wed Oct 03, 2007 1:27 pm
Forum: Beginners Help
Topic: 16.Quake3MapShader climbing the stairs for a node
Replies: 0
Views: 174

16.Quake3MapShader climbing the stairs for a node

Hi,
I managed to make model1 move in the room with collision, but when the node reaches the stairs, it stoppes. What is different from the camera which makes a climbing effect when going over the stairs.

This is the code for collision for model1 and camera:

camera = sm->addCameraSceneNodeFPS(0 ...