示例#1
0
// AddStaticShape explicity adds a shape as a static shape to the simulation.
func (s *Space) AddStaticShape(sh Shape) Shape {
	return cpShape(C.cpSpaceAddStaticShape(s.c(), sh.c()))
}
示例#2
0
func (s *Space) AddStaticShape(shape *Shape) {
	C.cpSpaceAddStaticShape(s.CPSpace, shape.CPShape)
}