Scale Kork
by Andy Hawkins · in Torque Game Engine · 06/02/2006 (6:23 am) · 4 replies
Is it possible to scale Kork or any other character in the engine? For example Kork is rather large. It would be nice to scale him down to real human size. Is there a transform or something in script?
#2
06/03/2006 (8:37 pm)
@Michael - a huge THANK YOU!!!! You have just saved myself and countless others hours or work. This works perfectly. Not only does it scale that character but it scales the IK, mount points and weapons held by that character!!!!!
#3
I also resized a character, but in contrast to you I increased it in size. Now there seems to be a problem with the collision detection, the caracter gets stuck at different points like stairs. This didn't happen before. How can I enlarge my character without getting problems with collision detection?
04/17/2009 (3:56 am)
Hi,I also resized a character, but in contrast to you I increased it in size. Now there seems to be a problem with the collision detection, the caracter gets stuck at different points like stairs. This didn't happen before. How can I enlarge my character without getting problems with collision detection?
#4
04/17/2009 (12:44 pm)
hmmm, would this work with weapons also ?
Torque Owner Fucifer
? 3. How change the player scale?
A. Open game.cs in server/scripts and fine this in function GameConnection::createPlayer
// Create the player object
%player = new Player() {
dataBlock = PlayerBody;
client = %this;
};
change to
// Create the player object
%player = new Player() {
dataBlock = PlayerBody;
client = %this;
//add this here
scale="2.3 2.3 2.3";
};
Note: You also can add to player.cs like this
datablock PlayerData(PlayerBody){
scale="2.3 2.3 2.3";
renderFirstPerson = false;
emap = true;
? 4. How change the Aiplayer scale?
A. Open aiplayer.cs in server/scripts and fine this in function AIPlayer::spawn
// Create the demo player object
%player = new AiPlayer() {
dataBlock = DemoPlayer;
path = "";
};
Change to
// Create the demo player object
%player = new AiPlayer() {
dataBlock = DemoPlayer;
path = "";
//add this here
scale ="2.3 2.3 2.3";
};