forked from StrafesNET/strafe-client
rename VirtualMesh to TransformedMesh
This commit is contained in:
parent
941faf199d
commit
5317a0fafe
@ -173,12 +173,12 @@ pub enum MinkowskiFace{
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct MinkowskiMesh<'a>{
|
pub struct MinkowskiMesh<'a>{
|
||||||
mesh0:&'a VirtualMesh<'a>,
|
mesh0:&'a TransformedMesh<'a>,
|
||||||
mesh1:&'a VirtualMesh<'a>,
|
mesh1:&'a TransformedMesh<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MinkowskiMesh<'_>{
|
impl MinkowskiMesh<'_>{
|
||||||
pub fn minkowski_sum<'a>(mesh0:&'a VirtualMesh,mesh1:&'a VirtualMesh)->MinkowskiMesh<'a>{
|
pub fn minkowski_sum<'a>(mesh0:&'a TransformedMesh,mesh1:&'a TransformedMesh)->MinkowskiMesh<'a>{
|
||||||
MinkowskiMesh{
|
MinkowskiMesh{
|
||||||
mesh0,
|
mesh0,
|
||||||
mesh1,
|
mesh1,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use crate::zeroes::zeroes2;
|
use crate::zeroes::zeroes2;
|
||||||
use crate::instruction::{InstructionEmitter,InstructionConsumer,TimedInstruction};
|
use crate::instruction::{InstructionEmitter,InstructionConsumer,TimedInstruction};
|
||||||
use crate::integer::{Time,Planar64,Planar64Vec3,Planar64Mat3,Angle32,Ratio64,Ratio64Vec2};
|
use crate::integer::{Time,Planar64,Planar64Vec3,Planar64Mat3,Angle32,Ratio64,Ratio64Vec2};
|
||||||
use crate::model_physics::{PhysicsMesh,VirtualMesh,MinkowskiMesh};
|
use crate::model_physics::{PhysicsMesh,TransformedMesh,MinkowskiMesh};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum PhysicsInstruction {
|
pub enum PhysicsInstruction {
|
||||||
@ -643,8 +643,8 @@ impl PhysicsModel{
|
|||||||
crate::model::CollisionAttributes::Decoration=>None,
|
crate::model::CollisionAttributes::Decoration=>None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn mesh<'a>(&self,meshes:&Vec<PhysicsMesh>)->VirtualMesh<'a>{
|
pub fn mesh<'a>(&self,meshes:&Vec<PhysicsMesh>)->TransformedMesh<'a>{
|
||||||
VirtualMesh{
|
TransformedMesh{
|
||||||
mesh:&meshes[self.mesh_id],
|
mesh:&meshes[self.mesh_id],
|
||||||
transform:&self.transform,
|
transform:&self.transform,
|
||||||
normal_transform:&self.normal_transform,
|
normal_transform:&self.normal_transform,
|
||||||
|
Loading…
Reference in New Issue
Block a user