Jump to content

Physical noise crash


photo

Recommended Posts

we have some crashes with the physical noise. it seems to be the following lines

	else if(body->getType() == Body::BODY_ROPE || body->getType() == Body::BODY_CLOTH) {
		
		BodyParticles *particles = static_cast<BodyParticles*>(body);
		
		vec3 direction;
		const Mat4 &itransform = getIWorldTransform();
		

should be

	else if(body->getType() == Body::BODY_ROPE || body->getType() == Body::BODY_CLOTH) {
		Image *image = getImage();
		BodyParticles *particles = static_cast<BodyParticles*>(body);
		
		vec3 direction;
Link to comment
×
×
  • Create New...