Objectview issue: mounting wheels on vehicles
by Eric Lafrance · in Torque Game Engine · 09/30/2003 (1:09 am) · 5 replies
When I mount wheels on vehicles using objectview, sometimes the 4 wheels are at correct position, sometimes the wheels mount at a different point than the hub. This happens randomly. I tried to mount each wheel one after the other with 1 second interval between them to make sure it's not a sync problem --> same issue.
Here's the code(this one doesn't include the schedules for the 1 second delay)
Anyone has been able to mount wheels without problem using objectview?
Here's the code(this one doesn't include the schedules for the 1 second delay)
function objectView::onWake(%this)
{
// Set main object
view.setObject("player", "fps/data/shapes/vehicles/fly/fly.dts", "", 0);
view.mountObject("wheel0", "fps/data/shapes/tires/EricTire.dts", "", "hub0", 1);
view.mountObject("wheel1", "fps/data/shapes/tires/EricTire.dts", "", "hub1", 1);
view.mountObject("wheel2", "fps/data/shapes/tires/EricTire.dts", "", "hub2", 1);
view.mountObject("wheel3", "fps/data/shapes/tires/EricTire.dts", "", "hub3", 1);
// Set animation
view.setSequence("player", "steering", 1);
}Anyone has been able to mount wheels without problem using objectview?
#2
I have a body, I mount a head, on the head I mount a hat. In the head I mount 2 eyes.
If I go into the screen and out, the eyes either move around, or fail to display..
I've not really traced through the code that much, but I can't see any reason why it does this. I only spotted this last night.
If anyone can shed any light on this issue, that'd be great.
I'll check later that everything's being initialised properly to prevent any garbage data creeping into the proceedings.
11/02/2005 (6:47 am)
I've had a similar mounting going funny problem on a player config screenI have a body, I mount a head, on the head I mount a hat. In the head I mount 2 eyes.
If I go into the screen and out, the eyes either move around, or fail to display..
I've not really traced through the code that much, but I can't see any reason why it does this. I only spotted this last night.
If anyone can shed any light on this issue, that'd be great.
I'll check later that everything's being initialised properly to prevent any garbage data creeping into the proceedings.
#3
I noticed that if you remake a wheel to be on the same axis as the car it shows in the correct direction. However, the wheel tends to locate much higher than needed (half-way through the fender). Obviously the problem is with that it does not properly recognize wheeled vehicles with their suspensions systems.
I would like to know if anyone else has come up with some other method besides wheels that are pretty much useless other than for display?
11/03/2005 (8:08 am)
Has anyone else found a solution to this yet?I noticed that if you remake a wheel to be on the same axis as the car it shows in the correct direction. However, the wheel tends to locate much higher than needed (half-way through the fender). Obviously the problem is with that it does not properly recognize wheeled vehicles with their suspensions systems.
I would like to know if anyone else has come up with some other method besides wheels that are pretty much useless other than for display?
#4
11/06/2005 (3:42 am)
Perhaps if someone could explain how it is that a wheel vehicle gets the wheels aligned properly in the game even though they are not on the same axis as the vehicle?
#5
11/27/2005 (1:39 am)
Nevermind I understand that last question now. I would still like to know if anyone has gotten this thing to be more stable with mounted ojects like wheels?
Torque Owner Ronald J Nelson
Code Hammer Games