- Timestamp:
- 10/28/16 22:33:56 (9 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/bullet/bullet_world.hh
r520 r525 29 29 virtual collision_shape create_box( const vec3& half_extens ); 30 30 virtual collision_shape create_static_plane( const vec3& norm, float cst ); 31 virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< int> idx );31 virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< uint32 > idx ); 32 32 virtual rigid_body create_rigid_body( float mass, const transform& tr, collision_shape shape, const vec3& com_offset = vec3() ); 33 33 virtual constraint create_hinge_constraint( rigid_body a, const transform& ta, rigid_body b, const transform& tb, const vec2& low_high, const vec3& params = vec3( 0.9f, 0.3f, 1.0f ) ); -
trunk/nv/engine/model_manager.hh
r524 r525 85 85 resource< animator_data > animator; 86 86 resource< animator_bind_data > bind_data; 87 resource< data_channel_set > phx_mesh; 87 88 // TODO: change to resource 88 89 string32 ragdoll_id; … … 106 107 { 107 108 flat_model_element elements[32]; 109 resource< data_channel_set > phx_mesh; 108 110 uint32 count; 109 111 shash64 attach; … … 160 162 result.flags = m->flags; 161 163 result.count = 0; 164 result.phx_mesh = m->phx_mesh; 162 165 flatten( result, m, rng, control, transform(), -1, map, gen_flags, 0, select ); 163 166 return result; -
trunk/nv/interface/context.hh
r523 r525 261 261 vertex_array create_vertex_array( const VTX* v, size_t vcount, const IDX* i, size_t icount, buffer_hint hint ) 262 262 { 263 buffer vb = create_buffer( VERTEX_BUFFER, hint, count * sizeof( VTX ), v );264 buffer ib = create_buffer( INDEX_BUFFER, hint, icount * sizeof( IDX ), i );263 buffer vb = this->create_buffer( VERTEX_BUFFER, hint, count * sizeof( VTX ), v ); 264 buffer ib = this->create_buffer( INDEX_BUFFER, hint, icount * sizeof( IDX ), i ); 265 265 vertex_array_desc desc; 266 266 desc.add_vertex_buffers< VTX >( vb, true ); -
trunk/nv/interface/physics_world.hh
r520 r525 68 68 public: 69 69 virtual int step_simulation( float dtime, int max_sub_steps = 1, float fixed_time_step = 1.0f / 60.0f ) = 0; 70 virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< int> idx ) = 0;70 virtual collision_shape create_mesh( array_view< vec3 > vtx, array_view< uint32 > idx ) = 0; 71 71 virtual collision_shape create_sphere( float radius ) = 0; 72 72 virtual collision_shape create_capsule( float radius, float height ) = 0; -
trunk/src/bullet/bullet_world.cc
r520 r525 121 121 } 122 122 123 nv::collision_shape nv::bullet_world::create_mesh( array_view< vec3 > vtx, array_view< int> idx )123 nv::collision_shape nv::bullet_world::create_mesh( array_view< vec3 > vtx, array_view< uint32 > idx ) 124 124 { 125 125 btTriangleMesh* mesh = new btTriangleMesh; … … 274 274 { 275 275 if ( !sh.internal ) return; 276 if ( sh.mesh ) ;276 if ( sh.mesh ) 277 277 { 278 278 btStridingMeshInterface* smi = static_cast<btStridingMeshInterface*>( sh.mesh );
Note: See TracChangeset
for help on using the changeset viewer.