Randomly change one's position or what?
Randomly change one's position or what?
And a copy, I'd like to see a random position change, I change position significantly. To do so should I change it?
It's like what you write.
[code]
for(i = 0; i < 4; i++) {
_SIO2parent = object->_SIO2instance ? ( SIO2object * )object->_SIO2instance : object;
sprintf( name, "%s_%d", _SIO2parent->name, i );
duplicate = sio2ObjectHardCopy( _SIO2parent, name );
//duplicate = sio2ObjectSoftCopy(_SIO2parent, name);
if(i == 0) {
object->_SIO2transform->loc->x = ((rand() % 21) -10)*0.1;
}
sio2TransformCopy( duplicate->_SIO2transform,object->_SIO2transform);
sio2TransformBindMatrix(duplicate->_SIO2transform );
//sio2ObjectGenId(duplicate);
}
It's like what you write.
[code]
for(i = 0; i < 4; i++) {
_SIO2parent = object->_SIO2instance ? ( SIO2object * )object->_SIO2instance : object;
sprintf( name, "%s_%d", _SIO2parent->name, i );
duplicate = sio2ObjectHardCopy( _SIO2parent, name );
//duplicate = sio2ObjectSoftCopy(_SIO2parent, name);
if(i == 0) {
object->_SIO2transform->loc->x = ((rand() % 21) -10)*0.1;
}
sio2TransformCopy( duplicate->_SIO2transform,object->_SIO2transform);
sio2TransformBindMatrix(duplicate->_SIO2transform );
//sio2ObjectGenId(duplicate);
}
kazuki- Posts : 7
Join date : 2009-08-23
Age : 37
Location : japan
Similar topics
» Resetting object position
» Emitter position
» How to change the scene?
» sio2UnProject change in 1.4?
» SIO2widget change in 1.4?
» Emitter position
» How to change the scene?
» sio2UnProject change in 1.4?
» SIO2widget change in 1.4?
Permissions in this forum:
You cannot reply to topics in this forum
|
|