Ignore:
Timestamp:
Nov 1, 2011, 6:55:19 PM (9 years ago)
Author:
sam
Message:

core: split vector operations into linear and non-linear so that we can
reuse the linear operations in quaternions. Also mark some constructors
explicit to better spot coding errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/worldentity.cpp

    r735 r1046  
    2626WorldEntity::WorldEntity()
    2727{
    28     position = 0;
    29     rotation = 0;
    30     velocity = 0;
    31     bbox[0] = bbox[1] = 0;
     28    position = vec3(0);
     29    rotation = vec3(0);
     30    velocity = vec3(0);
     31    bbox[0] = bbox[1] = vec3(0);
    3232
    33     mousepos = 0;
    34     mousebuttons = 0;
    35     pressed = 0;
    36     clicked = 0;
    37     released = 0;
     33    mousepos = ivec2(0);
     34    mousebuttons = ivec3(0);
     35    pressed = ivec3(0);
     36    clicked = ivec3(0);
     37    released = ivec3(0);
    3838}
    3939
Note: See TracChangeset for help on using the changeset viewer.