//********************************** Banshee Engine (www.banshee3d.com) **************************************************// //**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************// #include "Physics/BsMeshCollider.h" #include "Physics/BsPhysics.h" namespace bs { MeshCollider::MeshCollider() { } SPtr MeshCollider::create(const Vector3& position, const Quaternion& rotation) { return Physics::instance().createMeshCollider(position, rotation); } void MeshCollider::getListenerResources(Vector& resources) { if(mMesh != nullptr) resources.push_back(mMesh); } void MeshCollider::notifyResourceLoaded(const HResource& resource) { onMeshChanged(); } void MeshCollider::notifyResourceChanged(const HResource& resource) { onMeshChanged(); } }